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.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/menu/menu_sections.html b/layouts/partials/menu/menu_sections.html
index a07c049..77143f8 100644
--- a/layouts/partials/menu/menu_sections.html
+++ b/layouts/partials/menu/menu_sections.html
@@ -1,6 +1,8 @@
-{{ if eq 1 (len .Site.Sections) }}
+{{ if eq (len (where .Site.Sections "Params.hidefrommenu" "!=" true)) 1 }}
<div class="main-menu">
- <a href="{{ `/` | relURL }}">Home</a>
+ {{ with (index (where .Site.Sections "Params.hidefrommenu" "!=" true) 0) }}
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ {{ end }}
</div>
{{ else }}
<div class="dropdown">