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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Merino Hernández <merinhunter94@gmail.com>2022-09-06 03:17:17 +0300
committerGitHub <noreply@github.com>2022-09-06 03:17:17 +0300
commit3c01130d0a33006665a5762f151af6016eb02fae (patch)
treed8865ec7b22d80edf80753f4e5d192567d4cc57f /layouts
parente7e8344a512c12c02bd7bc8875067af8f737069a (diff)
Include an option to remove the navigation menu (#340)HEADmaster
* Add showMenu option The showMenu option allows users to remove the navigation menu if necessary. * Update README.md This commit will update the README.md file to include information about the showMenu option.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/nav.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index bdfd931..c38c0b6 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,3 +1,4 @@
+{{ if .Site.Params.showMenu | default true }}
<!-- Begin Nav bar -->
<div class="container">
<hr>
@@ -115,3 +116,4 @@
<hr>
</div>
<!-- End Nav bar -->
+{{ end }}