feat: finish self hosting blog post and optimize media

This commit is contained in:
2026-01-29 16:16:05 +01:00
parent 4821d2ddfd
commit 16f50cd70c
9 changed files with 39 additions and 4 deletions
+12
View File
@@ -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 -}}