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

github.com/jsnjack/kraiklyn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYauhen Shulitski <jsnjack@gmail.com>2020-02-07 01:25:28 +0300
committerYauhen Shulitski <jsnjack@gmail.com>2020-02-07 01:25:28 +0300
commitcc8e6505732d51e0854ffd22c947279babfb1174 (patch)
treed763883c4d123e7168228c8aef45d747a878ab98
parent723d123b6553f952a8b95fd4cb21bb3cbd1763d3 (diff)
:p: Fix duplication of nested dirs wint _index file
Closes #13
-rw-r--r--exampleSite/content/criticism/note/_index.md7
-rw-r--r--layouts/partials/menu_page_list.html7
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>