hugo-page/themes/tsc_vfl/layouts/shortcodes/tsc/news/internal-video.html

11 lines
312 B
HTML
Raw Permalink Normal View History

2023-10-25 12:38:54 +00:00
<video controls
{{ with .Get "poster" }}poster="{{ . }}"{{ end }}
{{ with .Get "width" }}width="{{ . }}"{{ end }}
{{ with .Get "height" }}height="{{ . }}"{{ end }}
>
<source
{{ with .Get "type" }}type="{{ . }}"{{ end }}
src="{{ (.Page.Resources.GetMatch (.Get "src")).RelPermalink }}"
>
</video>