summaryrefslogtreecommitdiff
path: root/layouts/partials/scripts.html
diff options
context:
space:
mode:
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>