diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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> |