diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2021-01-14 00:08:57 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2021-01-14 00:08:57 +0300 |
commit | 78021345d9f3bd1f342d87d82333d9718786e327 (patch) | |
tree | cf23dd43b4eeb53ded0fbdf3bf435771d2a204d0 | |
parent | 1a3ed20f93392c95438566f1ef55115ffa3f3c5b (diff) |
new param: moveFooterToHeader
-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> |