🐛 Fix: fix custom-assets block postion

This commit is contained in:
Cell
2024-06-28 14:17:48 +08:00
parent 9d1ab1a578
commit 91b583817a
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -284,6 +284,9 @@
{{- end -}}
{{- dict "Source" (resources.Get "js/theme.js") "Build" $options "Fingerprint" $fingerprint "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
{{- /* Custom Assets */ -}}
{{- block "custom-assets" . }}{{ end -}}
{{- /* Custom script */ -}}
{{- with ((resources.Get "js/custom.js") | default (resources.Get "js/_custom.js")) -}}
{{- $options := dict "targetPath" "js/custom.min.js" "minify" hugo.IsProduction -}}
@@ -306,6 +309,3 @@
{{- end -}}
{{- partial "plugin/analytics.html" . -}}
{{- /* Custom Assets */ -}}
{{- block "custom-assets" . }}{{ end -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.8" -}}
{{- .Scratch.Set "version" "v0.3.9-RC" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}