Use a custom opengraph template and rename feature-video to just feature

This commit is contained in:
2021-10-09 14:09:02 -05:00
parent afb9ff6ab0
commit 9beed385a8
4 changed files with 57 additions and 11 deletions

View File

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