summaryrefslogtreecommitdiff
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
parentc1827604f99a490aee9ffddb556e00ec1d49d1d5 (diff)
fix: fancybox not being loaded correctly
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/partials/scripts.html1
2 files changed, 1 insertions, 1 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" . }}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index a2cbb997..75a1ec36 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,6 +1,5 @@
<!-- third-party libraries -->
<script src="https://unpkg.com/swup@4"></script>
-<script src="https://unpkg.com/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.umd.js"></script>
<script type="module">
import { init } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';