mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
feat: finish self hosting blog post and optimize media
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{{- 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 -}}
|
||||
Reference in New Issue
Block a user