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

github.com/darshanbaral/khata.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/menu/menu_sections.html')
-rw-r--r--layouts/partials/menu/menu_sections.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/partials/menu/menu_sections.html b/layouts/partials/menu/menu_sections.html
new file mode 100644
index 0000000..a07c049
--- /dev/null
+++ b/layouts/partials/menu/menu_sections.html
@@ -0,0 +1,23 @@
+{{ if eq 1 (len .Site.Sections) }}
+<div class="main-menu">
+ <a href="{{ `/` | relURL }}">Home</a>
+</div>
+{{ else }}
+<div class="dropdown">
+ <span class="dropbtn main-menu" onclick="toggleHeight(this.nextElementSibling)">
+ Sections <i class="fas fa-chevron-down"></i>
+ </span>
+ <div class="dropdown-content">
+ <div class="rounded bg-light mt-2">
+ <ul class="list-unstyled m-0">
+ {{ range where .Site.Sections "Params.hidefrommenu" "!=" true }}
+ {{ $thisSection := replace .File.Dir "\\" "" }}
+ <li class="dropdown-link pl-3 pr-3 pt-1 pb-1 rounded">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+</div>
+{{ end }}