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

12 lines
335 B
HTML
Raw 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 }}
2024-01-07 10:53:49 +00:00
class="internal-video"
2023-10-25 12:38:54 +00:00
>
<source
{{ with .Get "type" }}type="{{ . }}"{{ end }}
src="{{ (.Page.Resources.GetMatch (.Get "src")).RelPermalink }}"
>
</video>