summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-10 15:54:14 +0800
committerEltrac <hi@guhub.cn>2025-09-10 15:54:14 +0800
commit4c6b558d89ca33b4e57f31be2c1eb68a59e41038 (patch)
tree965950ca9e0befa79d78b986c1ee9f9edd39bfdd /layouts/_partials/scripts.html
parent3d8c42f80bc0cfea9722d99e236d46d075648544 (diff)
feat: add settings page and text altering options
Diffstat (limited to 'layouts/_partials/scripts.html')
-rw-r--r--layouts/_partials/scripts.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html
index 7c000323..414b4216 100644
--- a/layouts/_partials/scripts.html
+++ b/layouts/_partials/scripts.html
@@ -1,3 +1,11 @@
+{{ with resources.Get "js/settings.js" }}
+<script>{{ .Content | safeJS }}</script>
+{{ end }}
+
+{{ with resources.Get "js/tooltip.js" }}
+<script>{{ .Content | safeJS }}</script>
+{{ end }}
+
{{- range .Site.Params.externalJSFiles }}
<script src="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}"></script>
{{- end }}
@@ -10,7 +18,3 @@
{{ if .File }}
{{ partial "scripts/action-menu-js" (.File.UniqueID | urlize) }}
{{ end }}
-
-{{ with resources.Get "js/tooltip.js" }}
-<script>{{ .Content | safeJS }}</script>
-{{ end }}