From 046c71c4c282b7c9dce781c8a1f31c68a1515854 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 24 Feb 2025 02:18:20 +0800 Subject: feat(www): YEAH! --- www/layouts/partials/js.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 www/layouts/partials/js.html (limited to 'www/layouts/partials/js.html') diff --git a/www/layouts/partials/js.html b/www/layouts/partials/js.html new file mode 100644 index 0000000..a4e8048 --- /dev/null +++ b/www/layouts/partials/js.html @@ -0,0 +1,9 @@ +{{ with resources.Get . }} + {{ if hugo.IsProduction }} + {{ with . | js.Build (dict "minify" true "sourceMap" "external") | fingerprint }} + + {{ end }} + {{ else }} + + {{ end }} +{{ end }} -- cgit v1.2.3