summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-17 09:23:09 +0800
committerEltrac <hi@guhub.cn>2025-05-17 09:23:09 +0800
commit1df5202592eb9ea3d46bc347511c1e68ae5bbeeb (patch)
tree9d4aa6ef0a13fce9fff49a96feea2e5164e2a683 /layouts/partials
parent9267f11dbdbb1eb073865f06babfd0909837fe6f (diff)
perf: remove unnecessary fancybox helper script
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/scripts.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index e523c046..e7f1c454 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -10,10 +10,7 @@
{{- if or (in .Section "posts") (in .Section "cards") (in .Section "library") (eq .Type "single") }}
<script src="/js/fancybox.umd.js"></script>
- {{- $fancybox := resources.Get "js/fancybox.js" | minify }}
- {{- if $fancybox }}
- <script>{{ $fancybox.Content | safeJS }}</script>
- {{- end }}
+ <script>Fancybox.bind("[data-fancybox]");</script>
{{- end }}
<script>