diff options
author | Alfredo Cambera <alfredocambera@gmail.com> | 2019-11-26 21:56:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 21:56:39 +0300 |
commit | b2a94dd3a1db065446ad98df01e09933c31a179e (patch) | |
tree | 052a288c75645de0c5d1237a6254bcccf5927320 /README.md | |
parent | 3c3ba750b4a9edf136a1dc280533de8d7a6dc3d9 (diff) |
updated main menu doc
* Added link to `front matter`.
* Added YAML example configuration for post listing page.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -105,7 +105,7 @@ googleAnalytics = "" #Google Analytics ID ### Main Menu -Add regular non-posts related page (eq. About page) to the main menu by adding these lines to the page front matter: +To add non-posts related page (eq. About page) to the main menu, adding these lines to the page [front matter](https://gohugo.io/content-management/front-matter/): TOML: @@ -128,11 +128,18 @@ For posts listing page, add `_index.md` file inside `content\posts` folder with TOML: ```toml -+++ title = "Posts" menu = "main" weight = "10" -+++ +``` + + +YAML: + +```yml +title : "Posts" +menu : "main" +weight : "10" ``` ### Categories & Tags |