diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-03 13:05:41 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-03 13:05:41 +0300 |
commit | ab141e3d9cadde1135d21241cf7d3cca3b0e4741 (patch) | |
tree | 7107cacb3decc2aa2c8216266c65fac92fc0f2cf /layouts | |
parent | 2f86ca014c1a6bef9feea8958239d5552cd33c61 (diff) |
fix: theme.min.js error
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/assets.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 2ae78b75..a55e1eed 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -189,8 +189,7 @@ {{- $config | jsonify | printf "window.config=%s;" | dict "Content" | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- /* Theme script */ -}} -{{- dict "Source" "js/theme.min.js" "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} -{{- $_ := (resources.Get "js/theme.min.js.map").RelPermalink -}} +{{- dict "Source" "js/theme.js" "Minify" true "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- with (.Scratch.Get "this").scriptArr -}} {{- delimit . "\n" | dict "Content" | dict "Scratch" $.Scratch "Data" | partial "scratch/script.html" -}} |