Limit sites menu condition to only main section

This commit is contained in:
Dmitry Kolosov 2020-08-29 10:02:58 +03:00 committed by GitHub
parent 3675771935
commit 48c70b333a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
<h1 class="site-title">
<a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a>
</h1>
{{ if .Site.Menus }}
{{ if .Site.Menus.main }}
<nav>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
@ -10,4 +10,4 @@
</nav>
{{ else }}
<nav></nav>
{{ end }}
{{ end }}