Add support for hugo menus
This commit is contained in:
@@ -36,6 +36,18 @@ enableGitInfo = true
|
||||
contentDir = 'content.cn'
|
||||
weight = 3
|
||||
|
||||
[menu]
|
||||
# [[menu.before]]
|
||||
[[menu.after]]
|
||||
name = "Github"
|
||||
url = "https://github.com/alex-shpak/hugo-book"
|
||||
weight = 10
|
||||
|
||||
[[menu.after]]
|
||||
name = "Hugo Themes"
|
||||
url = "https://themes.gohugo.io/hugo-book/"
|
||||
weight = 20
|
||||
|
||||
[params]
|
||||
# (Optional, default true) Controls table of contents visibility on right side of pages.
|
||||
# Start and end levels can be controlled with markup.tableOfContents setting.
|
||||
|
||||
@@ -34,6 +34,16 @@ languages:
|
||||
contentDir: content.cn
|
||||
weight: 3
|
||||
|
||||
menu:
|
||||
# before: []
|
||||
after:
|
||||
- name: "Github"
|
||||
url: "https://github.com/alex-shpak/hugo-book"
|
||||
weight: 10
|
||||
- name: "Hugo Themes"
|
||||
url: "https://themes.gohugo.io/hugo-book/"
|
||||
weight: 20
|
||||
|
||||
params:
|
||||
# (Optional, default true) Controls table of contents visibility on right side of pages.
|
||||
# Start and end levels can be controlled with markup.tableOfContents setting.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
headless: true
|
||||
bookMenuLevels: 1
|
||||
---
|
||||
|
||||
- [**Example Site**]({{< relref "/docs/example" >}})
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
menu:
|
||||
after:
|
||||
weight: 5
|
||||
title: Blog
|
||||
---
|
||||
Reference in New Issue
Block a user