From 7193f740cad0d6bb35778b419a8656ae8126ddf7 Mon Sep 17 00:00:00 2001 From: "hunter@kvog.sh" Date: Wed, 17 Jun 2026 21:40:13 -0500 Subject: --- themes/kvog/layouts/_partials/head/js.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 themes/kvog/layouts/_partials/head/js.html (limited to 'themes/kvog/layouts/_partials/head/js.html') diff --git a/themes/kvog/layouts/_partials/head/js.html b/themes/kvog/layouts/_partials/head/js.html new file mode 100644 index 0000000..0210efa --- /dev/null +++ b/themes/kvog/layouts/_partials/head/js.html @@ -0,0 +1,15 @@ +{{- with resources.Get "js/main.js" }} + {{- $opts := dict + "minify" (cond hugo.IsDevelopment false true) + "sourceMap" (cond hugo.IsDevelopment "linked" "none") + }} + {{- with . | js.Build $opts }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | fingerprint }} + + {{- end }} + {{- end }} + {{- end }} +{{- end }} -- cgit v1.2.3