mirror of https://github.com/onweru/compose.git

weru
08.24.2020 cd72ecdc85016ce2465fcaad4a1dc49e77bbe4f2
1
2
3
4
5
6
7
8
9
{{- $images := split (replace (.Get 0) ", " ",") "," }}
{{- $descriptions := split (replace (.Get 1) ":: " "::") "::" }}
<div class="gallery">
  {{ range $index, $image := $images }}
  <figure class="gallery_item">
    <img src="{{ absURL $image }} " class="gallery_image"{{ with $descriptions }}{{ with (index . $index) }} alt="{{ . }}"{{ end }}{{ end }}/>
  </figure>
  {{ end }}
</div>