mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
13 lines
523 B
HTML
13 lines
523 B
HTML
{{- with .Page.Resources.Get (.Get "src") }}
|
|
<video
|
|
{{ if eq ($.Get "autoplay" | default "false") "true" }}autoplay muted playsinline{{ end }}
|
|
{{ if eq ($.Get "controls" | default "true") "true" }}controls{{ end }}
|
|
{{ if eq ($.Get "loop" | default "false") "true" }}loop{{ end }}
|
|
preload="metadata"
|
|
style="width: 100%; height: auto;"
|
|
>
|
|
<source src="{{ .RelPermalink }}" type="{{ ($.Get "type" | default "video/webm") }}">
|
|
Your browser does not support the video tag.
|
|
</video>
|
|
{{- end -}}
|