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

github.com/shenoybr/hugo-goa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Mixon <jeff.mixon@gmail.com>2021-01-29 01:18:01 +0300
committerGitHub <noreply@github.com>2021-01-29 01:18:01 +0300
commite54496af94be3940dbee79b0c347287af61882f8 (patch)
tree87f40c9fdeb305213d3e456253fb3ea640140897
parent077a55ee2661cc9a6f189ed366bb39ccc1f26882 (diff)
fix: do not require a menu (#95)
Closes #72
-rw-r--r--layouts/partials/main_menu.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/main_menu.html b/layouts/partials/main_menu.html
index 7c466e0..e485f8a 100644
--- a/layouts/partials/main_menu.html
+++ b/layouts/partials/main_menu.html
@@ -1,5 +1,7 @@
+{{ with .Site.Menus.main }}
<section id="main-menu-pane" class="text-center main-menu">
{{ range sort .Site.Menus.main }}
<h4><a class="menu-item" href="{{ .URL }}">{{ .Name | lower }}</a></h4>
{{ end }}
</section>
+{{ end }}