diff options
author | Yauhen Shulitski <jsnjack@gmail.com> | 2020-02-07 01:25:28 +0300 |
---|---|---|
committer | Yauhen Shulitski <jsnjack@gmail.com> | 2020-02-07 01:25:28 +0300 |
commit | cc8e6505732d51e0854ffd22c947279babfb1174 (patch) | |
tree | d763883c4d123e7168228c8aef45d747a878ab98 | |
parent | 723d123b6553f952a8b95fd4cb21bb3cbd1763d3 (diff) |
:p: Fix duplication of nested dirs wint _index file
Closes #13
-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> |