new param: moveFooterToHeader

This commit is contained in:
zwbetz-gh 2021-01-13 15:08:57 -06:00
parent 1a3ed20f93
commit 78021345d9
3 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,7 @@ params:
hideHeaderLinks: false
search: true
showThemeSwitcher: true
moveFooterToHeader: false
customCss:
- css/custom_01.css
- css/custom_02.css

View File

@ -10,7 +10,9 @@
<div class="main-and-footer">
<div>
{{ block "main" . }}{{ end }}
{{ if ne .Site.Params.moveFooterToHeader true }}
{{ partial "footer.html" . }}
{{ end }}
</div>
</div>
</div>

View File

@ -13,5 +13,8 @@
</p>
</div>
{{ partial "nav.html" . }}
{{ if eq .Site.Params.moveFooterToHeader true }}
{{ partial "footer.html" . }}
{{ end }}
</div>
</header>