2018-11-17 19:09:57 +00:00
|
|
|
{{- $img := (.page.Resources.ByType "image").GetMatch "thumbnail.*" }}
|
|
|
|
{{- $link := .link }}
|
2018-05-21 20:08:56 +00:00
|
|
|
{{- with $img }}
|
|
|
|
<figure class="post__thumbnail thumbnail">
|
2018-11-17 19:09:57 +00:00
|
|
|
{{- with $link }}
|
|
|
|
<a class="thumbnail__link" href="{{ . }}">
|
|
|
|
<img class="thumbnail__img" src="{{ $img.RelPermalink }}" alt="{{ $img.Title }}">
|
|
|
|
</a>
|
|
|
|
{{- else }}
|
|
|
|
<img class="thumbnail__img" src="{{ $img.RelPermalink }}" alt="{{ $img.Title }}">
|
|
|
|
{{- end }}
|
2018-05-21 20:08:56 +00:00
|
|
|
</figure>
|
|
|
|
{{- end }}
|