Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2021-01-14 00:08:57 +0300
committerzwbetz-gh <zwbetz@gmail.com>2021-01-14 00:08:57 +0300
commit78021345d9f3bd1f342d87d82333d9718786e327 (patch)
treecf23dd43b4eeb53ded0fbdf3bf435771d2a204d0
parent1a3ed20f93392c95438566f1ef55115ffa3f3c5b (diff)
new param: moveFooterToHeader
-rw-r--r--exampleSite/config.yaml1
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/partials/header.html3
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>