From a60a600522b9c638cf06fc484d80209dfb7d5c20 Mon Sep 17 00:00:00 2001 From: JustZvan Date: Tue, 24 Mar 2026 20:14:42 +0100 Subject: feat: initial commit --- themes/JustZvan/layouts/_partials/head/js.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 themes/JustZvan/layouts/_partials/head/js.html (limited to 'themes/JustZvan/layouts/_partials/head/js.html') diff --git a/themes/JustZvan/layouts/_partials/head/js.html b/themes/JustZvan/layouts/_partials/head/js.html new file mode 100644 index 0000000..16ffbed --- /dev/null +++ b/themes/JustZvan/layouts/_partials/head/js.html @@ -0,0 +1,16 @@ +{{- with resources.Get "js/main.js" }} + {{- $opts := dict + "minify" (not hugo.IsDevelopment) + "sourceMap" (cond hugo.IsDevelopment "external" "") + "targetPath" "js/main.js" + }} + {{- with . | js.Build $opts }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | fingerprint }} + + {{- end }} + {{- end }} + {{- end }} +{{- end }} -- cgit v1.2.3