summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/styles.html7
2 files changed, 8 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e2f57b1..e868428 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -32,6 +32,8 @@ defaultContentLanguage = "en"
apple_touch_icon = "" # 180×180 PNG image for Apple devices
webmanifest = "" # Web app manifest with 192×192 and 512×512 PNG icons for modern browsers
+ disable_fingerprinting = false
+
[social]
# Facebook Page Admin ID for Domain Insights
facebook_admin = ""
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html
index 5cc2dbd..f50dad5 100644
--- a/layouts/partials/styles.html
+++ b/layouts/partials/styles.html
@@ -1,3 +1,8 @@
{{- $sass := resources.Get "sass/style.scss" -}}
-{{- $style := $sass | resources.ToCSS | resources.Minify | resources.Fingerprint -}}
+{{- if not site.Params.assets.disable_fingerprinting -}}
+{{- $style := $sass | resources.ToCSS | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
+{{- else -}}
+{{- $style := $sass | resources.ToCSS | minify -}}
+<link rel="stylesheet" href="{{ $style.RelPermalink }}">
+{{- end -}}