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

github.com/darshanbaral/kitab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/chapterMenu.html')
-rw-r--r--layouts/partials/chapterMenu.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/partials/chapterMenu.html b/layouts/partials/chapterMenu.html
new file mode 100644
index 0000000..a7c53f3
--- /dev/null
+++ b/layouts/partials/chapterMenu.html
@@ -0,0 +1,18 @@
+<div class="chapters d-none">
+ <h2 class='mt-3'>
+ {{ $thisSection := .Site.GetPage "section" .Section }}
+ {{ with $thisSection }}
+ {{ .Title | markdownify }}
+ {{ end }}
+ </h2>
+ <ul class="list-unstyled ml-3 mb-0 mt-0">
+ {{ $mypages := intersect (where .Site.Pages "Section" .Section) (where .Site.Pages "Kind" "page") }}
+ {{ range $mypages }}
+ <li>
+ <a href="{{ .Permalink }}"
+ ><h4>{{ .Title | markdownify}}</h4></a
+ >
+ </li>
+ {{ end }}
+ </ul>
+</div>