From a9ff9533a0fb5dcc0b9ab1677cd19e00e9ee0ff9 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Tue, 1 Dec 2020 18:52:06 +0530
Subject: [PATCH] head, footer: add option to disable fingerprinting #89
in site config =>
params:
assets:
disableFingerprinting: true
---
layouts/partials/footer.html | 5 +++++
layouts/partials/head.html | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 90cbeec..3af7105 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -17,9 +17,14 @@
{{- partial "extend_footer.html" . -}}
{{ if in site.Params.mainSections .Type }}
+{{- if not .Site.Params.assets.disableFingerprinting }}
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }}
+{{- else}}
+{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify }}
+
+{{- end}}
{{- end }}