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:
Diffstat (limited to 'layouts/partials/section_list.html')
-rw-r--r--layouts/partials/section_list.html14
1 files changed, 5 insertions, 9 deletions
diff --git a/layouts/partials/section_list.html b/layouts/partials/section_list.html
index ff78f48..61851aa 100644
--- a/layouts/partials/section_list.html
+++ b/layouts/partials/section_list.html
@@ -1,15 +1,11 @@
-{{ if .Pages }}
{{ partial "section.html" . }}
- {{ if .Sections }}
- {{ range .Sections.ByWeight }}
+{{ if .Pages }}
+ {{ range .Pages.ByWeight }}
+ {{ if .IsSection }}
{{ partial "section_list.html" . }}
+ {{ else }}
+ {{ partial "section.html" . }}
{{ end }}
- {{ else }}
- {{ range .Pages.ByWeight }}
- {{ partial "section.html" . }}
- {{ end }}
{{ end }}
-{{ else }}
- {{ partial "section.html" . }}
{{ end }}