Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2022-05-03 13:05:41 +0300
committerDillon <dillonzq@outlook.com>2022-05-03 13:05:41 +0300
commitab141e3d9cadde1135d21241cf7d3cca3b0e4741 (patch)
tree7107cacb3decc2aa2c8216266c65fac92fc0f2cf /layouts
parent2f86ca014c1a6bef9feea8958239d5552cd33c61 (diff)
fix: theme.min.js error
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/assets.html3
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" -}}