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:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..5913ae2
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,3 @@
+{{- $header_type := .Site.Params.Header | default "simple" }}
+{{- $header_file := printf "headers/%s.html" $header_type }}
+{{- partial $header_file . }}