diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-19 20:31:35 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-19 20:31:35 +0800 |
| commit | 70050d2bab887d12451096fa38ef55d4a7597b95 (patch) | |
| tree | 0bd658d2ba6473575becf689f789582597224e3a /layouts/_partials/scripts | |
| parent | ec14784ac0d801aec905d88aa5af2a051cdc7967 (diff) | |
refactor: load fancybox and littlefoot globally
Diffstat (limited to 'layouts/_partials/scripts')
| -rw-r--r-- | layouts/_partials/scripts/fancybox-js.html | 6 |
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> |
