From 295fdd809fd963bdd54d6cb7ed71eecea48265ea Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 7 Jul 2020 15:25:03 +0200 Subject: [PATCH] customJS --- config.toml | 1 + layouts/partials/scripts.html | 4 ++++ static/js/custom.js | 8 ++++++++ 3 files changed, 13 insertions(+) create mode 100644 static/js/custom.js 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 @@ +