diff --git a/config.toml b/config.toml index 54113c5..e4c12f6 100644 --- a/config.toml +++ b/config.toml @@ -50,6 +50,7 @@ preserveTaxonomyNames = true enableRobotsTXT = true customCSS = ["css/custom.css"] + customJS = ["css/custom.js"] [params.copyright] name = "hendrik" diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index a37172f..7d006a1 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -31,3 +31,7 @@ document.getElementById('thisyear').innerHTML = new Date().getFullYear(); }; +{{- range .Site.Params.customJS }} + +{{- end }} + diff --git a/static/js/custom.js b/static/js/custom.js new file mode 100644 index 0000000..3fa4257 --- /dev/null +++ b/static/js/custom.js @@ -0,0 +1,8 @@ +