Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MACAO Hugo Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
MACAO Hugo Theme
Commits
d6087bd3
Commit
d6087bd3
authored
Sep 11, 2021
by
Alex Shpak
Browse files
Options
Downloads
Patches
Plain Diff
Add hugo init to install instructions
parent
15ef744c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-9
11 additions, 9 deletions
README.md
with
11 additions
and
9 deletions
README.md
+
11
−
9
View file @
d6087bd3
...
...
@@ -38,6 +38,7 @@
## Installation
### Install as git submodule
Navigate to your hugo project root and run:
```
...
...
@@ -50,10 +51,16 @@ Then run hugo (or set `theme = "book"`/`theme: book` in configuration file)
hugo server --minify --theme book
```
###
Via M
odule
###
Install as hugo m
odule
You can also add this theme as a Hugo module instead of a git submodule.
Navigate to your hugo project root and edit your
`config.toml`
:
Start with initializing hugo modules, if not done yet:
```
hugo mod init github.com/repo/path
```
Navigate to your hugo project root and add [module] section to your
`config.toml`
:
```
toml
[module]
...
...
@@ -61,15 +68,10 @@ Navigate to your hugo project root and edit your `config.toml`:
path
=
'github.com/alex-shpak/hugo-book'
```
Then, to load/update the theme module
, run
:
Then, to load/update the theme module
and run hugo
:
```
sh
hugo mod get
-u
```
Finally, run hugo:
```
sh
hugo server
--minify
```
...
...
@@ -95,7 +97,7 @@ hugo server --minify --theme book
By default, the theme will render pages from the
`content/docs`
section as a menu in a tree structure.
You can set
`title`
and
`weight`
in the front matter of pages to adjust the order and titles in the menu.
### Leaf bundle menu
### Leaf bundle menu
(Deprecated)
You can also use leaf bundle and the content of its
`index.md`
file as menu.
Given you have the following file structure:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment