Add the ability to feature an image in an article on list pages

This commit is contained in:
2021-10-06 17:34:55 -05:00
parent 02fcd97a9a
commit 2490ebe6d9
3 changed files with 24 additions and 3 deletions

View File

@ -66,6 +66,12 @@
</div>
{{ end }}
{{ with .Resources.GetMatch "feature" }}
<div class="post-image">
<img src="{{ .Permalink }}" alt="{{ .Title }}" />
</div>
{{ end }}
<div class="post-description">
{{ if .Description }}
{{ .Description | markdownify }}