diff options
author | cfrome77 <fromeca@dukes.jmu.edu> | 2018-05-26 04:16:21 +0300 |
---|---|---|
committer | cfrome77 <fromeca@dukes.jmu.edu> | 2018-05-26 04:16:21 +0300 |
commit | 47fc89db70dcacfa2e21ac6e882c83922a7e7834 (patch) | |
tree | e2518655682154950ab75b2966d2a9b5ab95bb3d /README.md | |
parent | e14891ad5f6c907234f004653ea77297298e85c9 (diff) |
Add how to create a submenu item
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -60,6 +60,29 @@ To add a menu item add `[[menu.header]]` item to `config.toml`. For example: url = "/posts" ``` +To add a submenu item add `[[menu.header]]` item to with a parent parameter in `config.toml`. For example: + +``` +[menu] + [[menu.header]] + identifier = "post" + name = "posts" + weight = 0 + url = "/post" + [[menu.header]] + parent = "post" + name = "All Posts" + url = "/post" + [[menu.header]] + parent = "post" + name = "categories" + url = "/categories" + [[menu.header]] + parent = "post" + name = "tags" + url = "/tags" +``` + To enable disqus comments add `disqusShortname` to your `config.toml`. You can turn off disqus comments per page by adding `nocomments = true` to the front matter. |