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

github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Berner <christopherberner@gmail.com>2017-10-12 15:17:05 +0300
committerPatrick Collins <thepatrickcollins@gmail.com>2017-10-12 15:17:05 +0300
commit522ddf832339cf9b9402aa47c12694f534c326ca (patch)
tree490cd550e04cbdc8788e7710e06271b405ca27b4
parent77265e54090c8f612078560755ab6fc892fc8f23 (diff)
Fix customCSS and customJS parameters (#49)
All site-level configuration keys are stored as lower case in Hugo
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 0a6d18c..94d63f1 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,7 +2,7 @@
<a id="back-to-top" href="#" class="fa fa-arrow-up fa-border fa-2x"></a>
<!-- Scripts -->
- {{ if isset .Site.Params "customJS" }}
+ {{ if isset .Site.Params "customjs" }}
{{ $.Scratch.Set "jsFiles" .Site.Params.customJS }}
{{ else }}
{{ $.Scratch.Set "jsFiles" false }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index c9881fa..6af1067 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -37,7 +37,7 @@
{{ template "_internal/schema.html" . }}
{{ template "_internal/google_news.html" . }}
- {{ if isset .Site.Params "customCSS" }}
+ {{ if isset .Site.Params "customcss" }}
{{ $.Scratch.Set "cssFiles" .Site.Params.customCSS }}
{{ else }}
{{ $.Scratch.Set "cssFiles" false }}