From 0d35371f5f42be6b6d1e47188c15b001c6ed9930 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Mon, 20 Mar 2017 22:31:10 +0100 Subject: [PATCH] Make cache bust hashes optional. --- README.md | 2 ++ layouts/partials/meta.html | 2 +- layouts/partials/scripts.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c06393..6995a19 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,8 @@ params: slicknav: true # Activates SlickNav, a nice mobile menu. search: true # Site search with DuckDuckGo. searchSize: 20 # Search field size, default 20. + cacheBustCSS: true # Add a cache busting hash on styles.css + cacheBustJS: true # Add a cache busting hash on script.js ``` diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 50f2131..032772c 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -2,7 +2,7 @@ {{ .Hugo.Generator }} - + diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 5d54c97..f27b870 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,3 +1,3 @@ {{ if .Site.Params.jquery }}{{ end }} {{ if and .Site.Params.jquery .Site.Params.slicknav }}{{ end }} -{{ if .Site.Params.jquery }}{{ end }} +{{ if .Site.Params.jquery }}{{ end }}