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

github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Mehl <mail@mehl.mx>2020-11-03 12:08:16 +0300
committerMax Mehl <mail@mehl.mx>2020-11-03 12:08:25 +0300
commit658ad13e0b046e3cb53eaa6dcf8338c007262f19 (patch)
tree99dc6d85e3fbc716a472609f1f568f1dbcb59d59
parent9d6822b6fe06804f3b2637352b100b980eb77a69 (diff)
allow inclusion of custom partials
-rw-r--r--README.md1
-rw-r--r--layouts/_default/baseof.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3ad7832..1ee0576 100644
--- a/README.md
+++ b/README.md
@@ -92,6 +92,7 @@ theme = "hugo-dpsg"
dateformat = "02.01.2006" # Change the format of dates
customCSS = ["css/custom.css"] # Include custom CSS files
customJS = ["js/custom.js"] # Include custom JS files
+ customPartial = "piwik.html" # Include custom partials, e.g. tracking codes
[Params.style.vars]
highlightColor = "#003056" # Override main theme color
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index adb728e..a31842e 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -51,5 +51,6 @@
{{ range .Site.Params.customJS -}}
<script src="{{ . | relURL }}"></script>
{{- end }}
+{{ with .Site.Params.customPartial }}{{ partial . }}{{ end }}
</body>
</html>