diff options
-rw-r--r-- | exampleSite/content/criticism/note/_index.md | 7 | ||||
-rw-r--r-- | layouts/partials/menu_page_list.html | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/exampleSite/content/criticism/note/_index.md b/exampleSite/content/criticism/note/_index.md new file mode 100644 index 0000000..76b4108 --- /dev/null +++ b/exampleSite/content/criticism/note/_index.md @@ -0,0 +1,7 @@ +--- +title: "Note" +date: 2018-01-28T22:01:36+01:00 +anchor: "note" +--- + +A note diff --git a/layouts/partials/menu_page_list.html b/layouts/partials/menu_page_list.html index 8a6b57b..cadc184 100644 --- a/layouts/partials/menu_page_list.html +++ b/layouts/partials/menu_page_list.html @@ -6,9 +6,10 @@ {{ range .Sections.ByWeight }} {{ partial "menu_page_list.html" . }} {{ end }} - {{ end }} - {{ range .Pages.ByWeight }} - <li><a href="#{{ .Params.anchor }}">{{ .Title }}</a></li> + {{ else }} + {{ range .Pages.ByWeight }} + <li><a href="#{{ .Params.anchor }}">{{ .Title }}</a></li> + {{ end }} {{ end }} </ul> </li> |