add art year to title too

This commit is contained in:
Joshua Goins 2023-04-17 16:48:48 -04:00
parent 1dc7f9ef8a
commit 60bfeb4559

View file

@ -5,7 +5,7 @@
<a class="no-decoration" href="/art/{{ . }}"> <a class="no-decoration" href="/art/{{ . }}">
{{ $thumbp := printf "/year-thumbs/%d.webp" . }} {{ $thumbp := printf "/year-thumbs/%d.webp" . }}
{{ with resources.Get $thumbp }} {{ with resources.Get $thumbp }}
<img width="256" height="128" alt="{{ $year }}" class="gallery-img article-img" src="{{ .RelPermalink }}"> <img width="256" height="128" title="{{ $year }}" alt="{{ $year }}" class="gallery-img article-img" src="{{ .RelPermalink }}">
{{ end }} {{ end }}
</a> </a>
{{ end }} {{ end }}