27 lines
833 B
HTML
27 lines
833 B
HTML
<div class="gallery masonry lightbox">
|
|
<div class="grid-sizer"></div>
|
|
{{ range sort .Pages "Date" "desc" }}
|
|
{{ if not .Params.private }}
|
|
{{ $imageData := partial "image/reflect.html" .Params.hero }}
|
|
{{ with $imageData.image }}
|
|
<div class="image grid-item">
|
|
<a
|
|
href="{{- .RelPermalink -}}"
|
|
data-pswp-width="{{- .Width -}}"
|
|
data-pswp-height="{{- .Height -}}"
|
|
>
|
|
<img
|
|
src="{{- .RelPermalink -}}"
|
|
width="{{- .Width -}}"
|
|
height="{{- .Height -}}"
|
|
loading="lazy"
|
|
{{ with $imageData.title }}title="{{- . -}}"{{ end }}
|
|
{{ with $imageData.alt }}alt="{{- . -}}"{{ end }}
|
|
/>
|
|
</a>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|