Skip to content

Commit

Permalink
🐛 Fix: fix custom-assets block postion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jun 29, 2024
1 parent 9d1ab1a commit 91b5838
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/assets.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand All @@ -306,6 +309,3 @@
{{- end -}}

{{- partial "plugin/analytics.html" . -}}

{{- /* Custom Assets */ -}}
{{- block "custom-assets" . }}{{ end -}}
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -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" . -}}
Expand Down

0 comments on commit 91b5838

Please sign in to comment.