From ad1bb9787eb2317571cd3d1bfcd5a8b22df4803f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 21 Dec 2025 21:34:02 -0330 Subject: init hugo --- themes/aoidh/layouts/_partials/head/css.html | 9 +++++++++ themes/aoidh/layouts/_partials/head/js.html | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 themes/aoidh/layouts/_partials/head/css.html create mode 100644 themes/aoidh/layouts/_partials/head/js.html (limited to 'themes/aoidh/layouts/_partials/head') diff --git a/themes/aoidh/layouts/_partials/head/css.html b/themes/aoidh/layouts/_partials/head/css.html new file mode 100644 index 0000000..d76d23a --- /dev/null +++ b/themes/aoidh/layouts/_partials/head/css.html @@ -0,0 +1,9 @@ +{{- with resources.Get "css/main.css" }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | minify | fingerprint }} + + {{- end }} + {{- end }} +{{- end }} diff --git a/themes/aoidh/layouts/_partials/head/js.html b/themes/aoidh/layouts/_partials/head/js.html new file mode 100644 index 0000000..16ffbed --- /dev/null +++ b/themes/aoidh/layouts/_partials/head/js.html @@ -0,0 +1,16 @@ +{{- 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