summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-19 20:31:35 +0800
committerEltrac <hi@guhub.cn>2025-07-19 20:31:35 +0800
commit9671684328170d17f4cc70243d1c7ed369ab7ede (patch)
tree0bd658d2ba6473575becf689f789582597224e3a /layouts/_partials/scripts
parent80aa51a83a72de6f1ae21c88f301311a641747ec (diff)
refactor: load fancybox and littlefoot globally
Former-commit-id: 70050d2bab887d12451096fa38ef55d4a7597b95
Diffstat (limited to 'layouts/_partials/scripts')
-rw-r--r--layouts/_partials/scripts/fancybox-js.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_partials/scripts/fancybox-js.html b/layouts/_partials/scripts/fancybox-js.html
index c9543a01..4823f30c 100644
--- a/layouts/_partials/scripts/fancybox-js.html
+++ b/layouts/_partials/scripts/fancybox-js.html
@@ -1,4 +1,2 @@
-{{- if or (in .Section "posts") (in .Section "cards") (in .Section "library") (eq .Type "single") }}
- <script src="/js/fancybox.umd.js"></script>
- <script>Fancybox.bind("[data-fancybox]");</script>
-{{- end }}
+<script src="/js/fancybox.umd.js"></script>
+<script>Fancybox.bind("[data-fancybox]");</script>