{{ block "main" . }}{{ end }}
- {{ partial "footer.html" . }}
+ {{ if ne .Site.Params.moveFooterToHeader true }}
+ {{ partial "footer.html" . }}
+ {{ end }}
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 @@
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 @@ {{ partial "nav.html" . }} + {{ if eq .Site.Params.moveFooterToHeader true }} + {{ partial "footer.html" . }} + {{ end }}