Add setting menuInHeader to allow the manin menu to be moved to the header.
This commit is contained in:
parent
4d3658251f
commit
35443bce5c
2 changed files with 3 additions and 1 deletions
|
|
@ -227,6 +227,7 @@ params:
|
|||
mainSections: # The sections you want to have listed on the front page.
|
||||
- "section1" # Default to the section with most content if not set.
|
||||
- "section2" # Set to empty if no section should be listed.
|
||||
menuInHeader: true # Move the main menu to the header, default false.
|
||||
microUsername: "" # Your micro.blog username.
|
||||
mobileMenu: true # Turn on a mobile menu on small screens, default false.
|
||||
piwikSiteId: # Matamo site id
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue