From 91b583817a2bca52d03022735a28e2f5d5e14070 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 28 Jun 2024 14:17:48 +0800 Subject: [PATCH] :bug: Fix: fix custom-assets block postion --- layouts/partials/assets.html | 6 +++--- layouts/partials/init/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index abda23e7..0d77ad3c 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -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 -}} diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index 2ad8c3e6..e36e5bdd 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -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" . -}}