summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2024-12-19 14:57:50 +0800
committerEltrac <hi@guhub.cn>2024-12-19 14:57:50 +0800
commit841597652a85c6f2e2a95c100c621214a0bc025e (patch)
tree15be5d1c4cc299010fe8cf4ee5cbead75369a919 /layouts/_default
parentc1827604f99a490aee9ffddb556e00ec1d49d1d5 (diff)
fix: fancybox not being loaded correctly
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a1b0b111..faf70e6a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -61,5 +61,6 @@
</article>
<!-- use fancybox -->
<!-- the reason it is replace here it that the fancybox.js is loaded after the swup.js -->
+ <script src="https://unpkg.com/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.umd.js"></script>
<script>Fancybox.bind("[data-fancybox]");</script>
{{ partial "snippets/document-end.html" . }}