binario/layouts/partials/post_thumbnail.html
2018-05-21 23:08:56 +03:00

6 lines
No EOL
238 B
HTML

{{- $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 }}