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

This commit is contained in:
bbaovanc committed 2021-10-09 14:09:02 -05:00
1 parent afb9ff6ab0
commit 9beed385a8
4 files changed
+57 -11

No files matched your search

+2 -2
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 }}">