mirror of
https://github.com/Vimux/Binario.git
synced 2024-12-22 20:49:05 +00:00
13 lines
No EOL
444 B
HTML
13 lines
No EOL
444 B
HTML
{{- $img := (.page.Resources.ByType "image").GetMatch "thumbnail.*" }}
|
|
{{- $link := .link }}
|
|
{{- with $img }}
|
|
<figure class="post__thumbnail thumbnail">
|
|
{{- 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 }}
|
|
</figure>
|
|
{{- end }} |