Support featured videos (instead of image)

This commit is contained in:
2021-10-08 22:52:58 -05:00
parent 346ef21784
commit 2616803f47
3 changed files with 15 additions and 3 deletions

View File

@ -69,9 +69,17 @@
{{ end }}
{{ with .Resources.GetMatch "feature" }}
<div class="post-image">
<div class="post-media">
<img src="{{ .Permalink }}" alt="{{ .Title }}" />
</div>
{{ else }}
{{ with .Resources.GetMatch "feature-video" }}
<div class="post-media">
<video controls>
<source src="{{ .Permalink }}" alt="{{ .Title }}">
</video>
</div>
{{ end }}
{{ end }}
<div class="post-description">