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

github.com/danielkvist/hugo-piercer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-03-24 19:39:45 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-03-24 19:39:45 +0300
commitb723bc1b074a498646518824f59fe84e7c658e83 (patch)
tree25926e31ccdb28b24718e951c07b813315e9be68
parent632eddf7a1b178e7bf37761e6af7ec6a73009d5b (diff)
add option to hide the header
-rw-r--r--exampleSite/config.toml7
-rw-r--r--layouts/_default/baseof.html2
2 files changed, 7 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a1110d8..52e2170 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -55,10 +55,13 @@ themesDir = "../.."
h2 = "2.441em"
h1 = "3.052em"
+[params.header]
+ show = true
+
[params.cta]
show = true
- cta = ""
- link = ""
+ message = "Get It!"
+ link = "#"
[params.fa]
version = ""
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ca71a7e..3d25dbf 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -3,7 +3,9 @@
{{- partial "head.html" . -}}
<body>
+ {{ if $.Site.Params.header.show }}
{{- partial "header.html" . -}}
+ {{ end }}
<main class="main">
{{- block "main" . }}{{- end }}
</main>