Added a "video" type for post preview
This commit is contained in:
parent
fdd332f7e1
commit
b71c2754dc
@ -22,6 +22,9 @@
|
|||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="img-title" />
|
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="img-title" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .Params.video }}
|
||||||
|
<video src="{{ .Params.video }}" loop autoplay muted playsinline class="img-title" />
|
||||||
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{{ partial "post_meta.html" . }}
|
{{ partial "post_meta.html" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user