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

github.com/pjbakker/flexible-seo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul <paul@brainspark.nl>2020-02-05 18:27:08 +0300
committerPaul <paul@brainspark.nl>2020-02-05 18:27:08 +0300
commit9e92860311bab5efea95f4d2af6f549b7eeaab66 (patch)
treebe6054b04437e70b71d8ad65902917b2b5aa78fd
parent03948e620d3d240f8118e71eeb44a0a337be6f2e (diff)
Allow pages to override the Site.Header variable
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 5913ae2..5c10636 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,3 +1,3 @@
-{{- $header_type := .Site.Params.Header | default "simple" }}
+{{- $header_type := .Params.Header | default .Site.Params.Header | default "simple" }}
{{- $header_file := printf "headers/%s.html" $header_type }}
{{- partial $header_file . }}