Limit sites menu condition to only main section
This commit is contained in:
parent
3675771935
commit
48c70b333a
@ -1,7 +1,7 @@
|
|||||||
<h1 class="site-title">
|
<h1 class="site-title">
|
||||||
<a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a>
|
<a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
{{ if .Site.Menus }}
|
{{ if .Site.Menus.main }}
|
||||||
<nav>
|
<nav>
|
||||||
{{ $currentPage := . }}
|
{{ $currentPage := . }}
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
|
Loading…
Reference in New Issue
Block a user