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:
authorDarshan Baral <darshanbaral@gmail.com>2019-06-16 21:21:32 +0300
committerDarshan Baral <darshanbaral@gmail.com>2019-06-16 21:21:32 +0300
commitd7c646ca6814449b046bd1d8da105195ef0773fe (patch)
tree9541565f06e8750a25e1397b768a852df6075219
parentb47c5eb30198724e0ee50b465ff727b7c6880429 (diff)
consolidated chaptermenu
-rw-r--r--layouts/partials/chapterMenu.html37
1 files changed, 21 insertions, 16 deletions
diff --git a/layouts/partials/chapterMenu.html b/layouts/partials/chapterMenu.html
index 48a5db7..4520f3a 100644
--- a/layouts/partials/chapterMenu.html
+++ b/layouts/partials/chapterMenu.html
@@ -1,16 +1,21 @@
-<b class="mt-3">
- {{ $thisSection := .Site.GetPage "section" .Section }}
- {{ with $thisSection }}
- {{ .Title | markdownify }}
- {{ end }}
-</b>
-<ul class="list-unstyled ml-1">
- {{ $mypages := intersect (where .Site.Pages "Section" .Section) (where .Site.Pages "Kind" "page") }}
- {{ range $mypages }}
- <li class="hanging">
- <a href="{{ .Permalink }}"
- >{{ .Title | markdownify}}</a
- >
- </li>
- {{ end }}
-</ul>
+<div class="dropdown">
+ <p class="mb-1 mt-1 dropbtn text-left">
+ <i class="navMenu fas fa-bars"></i>
+ </p>
+ <div class="dropdown-content bg-light shadow">
+ <b class="mt-3">
+ {{ $thisSection := .Site.GetPage "section" .Section }}
+ {{ with $thisSection }}
+ {{ .Title | markdownify }}
+ {{ end }}
+ </b>
+ <ul class="list-unstyled ml-1">
+ {{ $mypages := intersect (where .Site.Pages "Section" .Section) (where .Site.Pages "Kind" "page") }}
+ {{ range $mypages }}
+ <li class="hanging">
+ <a href="{{ .Permalink }}">{{ .Title | markdownify}}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+</div>