diff options
| author | JustZvan <justzvan@justzvan.xyz> | 2026-03-25 17:45:10 +0100 |
|---|---|---|
| committer | JustZvan <justzvan@justzvan.xyz> | 2026-03-25 17:45:10 +0100 |
| commit | 3c1125e19a509329409e7d3d9ff41f36fd2ed5c9 (patch) | |
| tree | e1e6e380164afea27fa5c33ed12a0a4d9d8acd82 /themes/JustZvan/layouts/_partials | |
| parent | 3ca80fe3264c7883538bc19b1f95857ac945577e (diff) | |
feat: nuke all javascript
Diffstat (limited to 'themes/JustZvan/layouts/_partials')
| -rw-r--r-- | themes/JustZvan/layouts/_partials/head.html | 1 | ||||
| -rw-r--r-- | themes/JustZvan/layouts/_partials/head/js.html | 16 |
2 files changed, 0 insertions, 17 deletions
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 @@ <meta name="viewport" content="width=device-width"> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> {{ 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 }} - <script src="{{ .RelPermalink }}"></script> - {{- else }} - {{- with . | fingerprint }} - <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> - {{- end }} - {{- end }} - {{- end }} -{{- end }} |