summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts/fancybox-js.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/scripts/fancybox-js.html')
-rw-r--r--layouts/_partials/scripts/fancybox-js.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_partials/scripts/fancybox-js.html b/layouts/_partials/scripts/fancybox-js.html
new file mode 100644
index 00000000..c9543a01
--- /dev/null
+++ b/layouts/_partials/scripts/fancybox-js.html
@@ -0,0 +1,4 @@
+{{- 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 }}