Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/LordMathis/hugo-theme-nix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcfrome77 <fromeca@dukes.jmu.edu>2018-05-26 04:16:21 +0300
committercfrome77 <fromeca@dukes.jmu.edu>2018-05-26 04:16:21 +0300
commit47fc89db70dcacfa2e21ac6e882c83922a7e7834 (patch)
treee2518655682154950ab75b2966d2a9b5ab95bb3d /README.md
parente14891ad5f6c907234f004653ea77297298e85c9 (diff)
Add how to create a submenu item
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0dfbe27..330e4c9 100644
--- a/README.md
+++ b/README.md
@@ -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.