binario/layouts/partials/post_thumbnail.html

6 lines
238 B
HTML
Raw Normal View History

2018-05-21 20:08:56 +00:00
{{- $img := ( .page.Resources.ByType "image").GetMatch "thumbnail.*" }}
{{- with $img }}
<figure class="post__thumbnail thumbnail">
<img class="thumbnail__img" src="{{ $img.RelPermalink }}" alt="{{ $img.Title }}">
</figure>
{{- end }}