From 70c5a2b6fb60bd90e7780fa220bfe146141d00e2 Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Fri, 1 Aug 2025 21:30:53 +0800 Subject: Initial commit --- layouts/partials/head/css.html | 1 + layouts/partials/head/js.html | 1 + 2 files changed, 2 insertions(+) create mode 100644 layouts/partials/head/css.html create mode 100644 layouts/partials/head/js.html (limited to 'layouts/partials/head') diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html new file mode 100644 index 0000000..b260134 --- /dev/null +++ b/layouts/partials/head/css.html @@ -0,0 +1 @@ +{{- with resources.Get "css/main.css" }} {{- if eq hugo.Environment "development" }} {{- else }} {{- with . | minify | fingerprint }} {{- end }} {{- end }} {{- end }} \ No newline at end of file diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html new file mode 100644 index 0000000..7a0d28d --- /dev/null +++ b/layouts/partials/head/js.html @@ -0,0 +1 @@ +{{- with resources.Get "js/main.js" }} {{- if eq hugo.Environment "development" }} {{- with . | js.Build }} {{- end }} {{- else }} {{- $opts := dict "minify" true }} {{- with . | js.Build $opts | fingerprint }} {{- end }} {{- end }} {{- end }} \ No newline at end of file -- cgit v1.2.3