summaryrefslogtreecommitdiff
path: root/layouts/partials/scripts.html
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
commit01ef5543ff46c85feaf07e76e03398db7718a0da (patch)
treea185cc20d027fbb27b76938902a4a20955ce3646 /layouts/partials/scripts.html
parentee8f25324164c845a7767d93b31ebd48571a3607 (diff)
perf: remove unnecessary fancybox helper script
Former-commit-id: 1df5202592eb9ea3d46bc347511c1e68ae5bbeeb
Diffstat (limited to 'layouts/partials/scripts.html')
-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>