Revert "Gallery: Switch Packery to MagicGrid "

This commit is contained in:
Nuno Coração
2024-03-09 14:28:04 +00:00
committed by GitHub
parent 08b14e923d
commit f0f6afa555
6 changed files with 68 additions and 71 deletions
+3 -3
View File
@@ -52,8 +52,8 @@
{{/* Packery */}}
{{ if .Page.HasShortcode "gallery" }}
{{ $magicGridLib := resources.Get "lib/magic-grid/magic-grid.min.js" }}
<script defer src="{{ $magicGridLib.RelPermalink }}" integrity="{{ $magicGridLib.Data.Integrity }}"></script>
{{ $packeryLib := resources.Get "lib/packery/packery.pkgd.min.js" }}
<script defer src="{{ $packeryLib.RelPermalink }}" integrity="{{ $packeryLib.Data.Integrity }}"></script>
{{ $jsShortcodeGallery := resources.Get "js/shortcodes/gallery.js" }}
{{ $jsShortcodeGallery = $jsShortcodeGallery | resources.Minify | resources.Fingerprint "sha512" }}
@@ -64,4 +64,4 @@
{{ if or (.Page.HasShortcode "carousel") (.Page.HasShortcode "timeline")}}
{{ $twelementsLib := resources.Get "lib/tw-elements/index.min.js" }}
<script defer src="{{ $twelementsLib.RelPermalink }}" integrity="{{ $twelementsLib.Data.Integrity }}"></script>
{{ end }}
{{ end }}