diff options
author | Max Mehl <mail@mehl.mx> | 2020-11-03 12:08:16 +0300 |
---|---|---|
committer | Max Mehl <mail@mehl.mx> | 2020-11-03 12:08:25 +0300 |
commit | 658ad13e0b046e3cb53eaa6dcf8338c007262f19 (patch) | |
tree | 99dc6d85e3fbc716a472609f1f568f1dbcb59d59 | |
parent | 9d6822b6fe06804f3b2637352b100b980eb77a69 (diff) |
allow inclusion of custom partials
-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> |