Weekly post
This commit is contained in:
parent
6c959a9f96
commit
0fca7fa015
3 changed files with 44 additions and 0 deletions
8
layouts/shortcodes/video.html
Normal file
8
layouts/shortcodes/video.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{ $src := .Get "src" }}
|
||||
{{ with .Page.Resources.GetMatch $src }}
|
||||
<div style="text-align: center;">
|
||||
<video autoplay loop muted playsinline>
|
||||
<source src="{{ .RelPermalink }}" type="{{ .MediaType }}">
|
||||
</video>
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue