mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 09:47:29 -05:00
Use a custom opengraph template and rename feature-video to just feature
This commit is contained in:
@ -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 }}">
|
||||
|
Reference in New Issue
Block a user