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 --- content/_index.md | 1 - themes/JustZvan/assets/js/main.js | 1 - themes/JustZvan/layouts/_partials/head.html | 1 - themes/JustZvan/layouts/_partials/head/js.html | 16 ---------------- 4 files changed, 19 deletions(-) delete mode 100644 themes/JustZvan/assets/js/main.js delete mode 100644 themes/JustZvan/layouts/_partials/head/js.html diff --git a/content/_index.md b/content/_index.md index 336cc79..a7dc5b7 100644 --- a/content/_index.md +++ b/content/_index.md @@ -9,4 +9,3 @@ socials: --- hobbyist developer from Croatia 🇭🇷 - 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