Add setting menuInHeader to allow the manin menu to be moved to the header.

This commit is contained in:
Fredrik Jonsson 2022-09-12 16:19:51 +02:00
commit 35443bce5c

View file

@ -21,10 +21,11 @@
</h1>
<div class="region header__region">
{{ if site.IsMultiLingual }}{{ partial "language-selector.html" . }}{{ end -}}
{{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}}
</div>
</header>
{{ partial "menu.html" . }}
{{ if not ($.Param "menuinheader") }}{{ partial "menu.html" . }}{{ end -}}
{{ block "main" . }}{{ end }}