diff options
-rw-r--r-- | exampleSite/config.yaml | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 4621b93..a8566b6 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -27,6 +27,7 @@ params: hideHeaderLinks: false search: true showThemeSwitcher: true + moveFooterToHeader: false customCss: - css/custom_01.css - css/custom_02.css diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d7fcd24..b76952f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,7 +10,9 @@ <div class="main-and-footer"> <div> {{ block "main" . }}{{ end }} - {{ partial "footer.html" . }} + {{ if ne .Site.Params.moveFooterToHeader true }} + {{ partial "footer.html" . }} + {{ end }} </div> </div> </div> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 950179e..05f45c8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -13,5 +13,8 @@ </p> </div> {{ partial "nav.html" . }} + {{ if eq .Site.Params.moveFooterToHeader true }} + {{ partial "footer.html" . }} + {{ end }} </div> </header> |