homepage/layouts/shortcodes/video.html

5 lines
126 B
HTML

<video autoplay muted loop>
<source src="{{($.Page.Resources.GetMatch (.Get "src")).RelPermalink}}">
{{.Get "text"}}
</video>