cosin-website/layouts/shortcodes/gallery.html

10 lines
240 B
HTML
Raw Permalink Normal View History

2018-04-24 03:54:28 +02:00
{{ $year := string (.Get 0) }}
{{ $photos := index .Site.Data.photos $year }}
2018-04-24 03:54:28 +02:00
{{ range $photos }}
2018-04-24 03:54:28 +02:00
<a href="/photos/{{ $year}}/{{ . }}.jpg">
<img src="/photos/{{ $year}}/{{ . }}.small.jpg"
alt="CoSin {{ $year }}" />
</a>
{{ end }}