From 3c1125e19a509329409e7d3d9ff41f36fd2ed5c9 Mon Sep 17 00:00:00 2001 From: JustZvan Date: Wed, 25 Mar 2026 17:45:10 +0100 Subject: feat: nuke all javascript --- themes/JustZvan/assets/js/main.js | 1 - themes/JustZvan/layouts/_partials/head.html | 1 - themes/JustZvan/layouts/_partials/head/js.html | 16 ---------------- 3 files changed, 18 deletions(-) delete mode 100644 themes/JustZvan/assets/js/main.js delete mode 100644 themes/JustZvan/layouts/_partials/head/js.html (limited to 'themes/JustZvan') diff --git a/themes/JustZvan/assets/js/main.js b/themes/JustZvan/assets/js/main.js deleted file mode 100644 index e2aac52..0000000 --- a/themes/JustZvan/assets/js/main.js +++ /dev/null @@ -1 +0,0 @@ -console.log('This site was generated by Hugo.'); diff --git a/themes/JustZvan/layouts/_partials/head.html b/themes/JustZvan/layouts/_partials/head.html index 02c2240..6312251 100644 --- a/themes/JustZvan/layouts/_partials/head.html +++ b/themes/JustZvan/layouts/_partials/head.html @@ -2,4 +2,3 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} -{{ partialCached "head/js.html" . }} diff --git a/themes/JustZvan/layouts/_partials/head/js.html b/themes/JustZvan/layouts/_partials/head/js.html deleted file mode 100644 index 16ffbed..0000000 --- a/themes/JustZvan/layouts/_partials/head/js.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- 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