From 627cdfd418c6d55c4b8e130068aa34de23324c0d Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 16:37:46 -0330 Subject: theme: flatten partials and assets dirs --- themes/aoidh/layouts/_partials/head.html | 5 +++-- themes/aoidh/layouts/_partials/head/css.html | 3 --- themes/aoidh/layouts/_partials/head/js.html | 16 ---------------- 3 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 themes/aoidh/layouts/_partials/head/css.html delete mode 100644 themes/aoidh/layouts/_partials/head/js.html (limited to 'themes/aoidh/layouts') diff --git a/themes/aoidh/layouts/_partials/head.html b/themes/aoidh/layouts/_partials/head.html index 02c2240..c72c8c5 100644 --- a/themes/aoidh/layouts/_partials/head.html +++ b/themes/aoidh/layouts/_partials/head.html @@ -1,5 +1,6 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} -{{ partialCached "head/css.html" . }} -{{ partialCached "head/js.html" . }} +{{- with resources.Get "aoidh.css" }} + +{{- end }} diff --git a/themes/aoidh/layouts/_partials/head/css.html b/themes/aoidh/layouts/_partials/head/css.html deleted file mode 100644 index dec8013..0000000 --- a/themes/aoidh/layouts/_partials/head/css.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- with resources.Get "css/aoidh.css" }} - -{{- end }} diff --git a/themes/aoidh/layouts/_partials/head/js.html b/themes/aoidh/layouts/_partials/head/js.html deleted file mode 100644 index 16ffbed..0000000 --- a/themes/aoidh/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