redstrate.com/themes/red/layouts/partials/gallery-js.html

20 lines
874 B
HTML
Raw Permalink Normal View History

2024-09-30 17:40:46 -04:00
{{/* Partial used to include the JS for the gallery page's masonry layout. */}}
{{ $masonry := resources.Get "js/masonry.min.js" }}
{{ if hugo.IsProduction }}
{{ $masonry = $masonry | fingerprint | resources.PostProcess }}
{{ end }}
2025-01-03 10:21:25 -05:00
<script defer src="{{ $masonry.RelPermalink }}" integrity="{{ $masonry.Data.Integrity }}"></script>
{{ $imagesloaded := resources.Get "js/imagesloaded.min.js" }}
{{ if hugo.IsProduction }}
{{ $imagesloaded = $imagesloaded | fingerprint | resources.PostProcess }}
{{ end }}
2025-01-03 10:21:25 -05:00
<script defer src="{{ $imagesloaded.RelPermalink }}" integrity="{{ $imagesloaded.Data.Integrity }}"></script>
2024-09-30 17:40:46 -04:00
{{ $site := resources.Get "js/gallery.js" }}
{{ if hugo.IsProduction }}
{{ $site = $site | minify | fingerprint | resources.PostProcess }}
{{ end }}
2025-01-03 10:21:25 -05:00
<script defer src="{{ $site.RelPermalink }}" integrity="{{ $site.Data.Integrity }}"></script>