2024-09-30 17:40:46 -04:00
|
|
|
{{/* Partial used to include the JS for the gallery page's masonry layout. */}}
|
|
|
|
|
2024-10-12 15:48:42 -04:00
|
|
|
{{ $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>
|
2024-10-12 15:48:42 -04:00
|
|
|
|
|
|
|
{{ $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-10-12 15:48:42 -04:00
|
|
|
|
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>
|