diff --git a/layouts/partials/extend-footer.html b/layouts/partials/extend-footer.html
index 4e3f831..b38a665 100644
--- a/layouts/partials/extend-footer.html
+++ b/layouts/partials/extend-footer.html
@@ -1,16 +1,75 @@
+{{ with resources.Get "js/lightbox.js" }} {{ if hugo.IsDevelopment }} {{ with .
+| js.Build }}
+
+{{ end }} {{ else }} {{ $opts := (dict "minify" true "targetPath"
+"js/lightbox.js") }} {{ with . | js.Build $opts | fingerprint }}
+
+{{ end }} {{ end }} {{ end }} {{ with resources.Get "css/lightbox.css" }} {{ if
+hugo.IsDevelopment }} {{ with . }}
+
+{{ end }} {{ else }} {{ with . | fingerprint }}
+
+{{ end }} {{ end }} {{ end }}
diff --git a/layouts/partials/extend-head.html b/layouts/partials/extend-head.html
index e6af5b6..6185717 100644
--- a/layouts/partials/extend-head.html
+++ b/layouts/partials/extend-head.html
@@ -1,45 +1,7 @@
-{{- if eq .Site.BaseURL "https://oe7drt.com/" }}
- {{ partial "plausible_head.html" . }}
-{{- end }}
+{{- if eq .Site.BaseURL "https://oe7drt.com/" }} {{ partial
+"plausible_head.html" . }} {{- end }}
-{{ with resources.Get "js/lightbox.js" }} {{ if hugo.IsDevelopment }} {{ with .
-| js.Build }}
-
-{{ end }} {{ else }} {{ $opts := (dict "minify" true "targetPath"
-"js/lightbox.js") }} {{ with . | js.Build $opts | fingerprint }}
-
-{{ end }} {{ end }} {{ end }} {{ with resources.Get "css/lightbox.css" }} {{ if
-hugo.IsDevelopment }} {{ with . }}
-
-{{ end }} {{ else }} {{ with . | fingerprint }}
-
-{{ end }} {{ end }} {{ end }}
-