feat: add muted attribute and refine autoplay condition for video shortcode (#1256)

This commit is contained in:
Jimmy
2026-01-30 15:09:33 +01:00
committed by GitHub
parent 31022581d8
commit 00069b2c45
+2 -1
View File
@@ -4,7 +4,8 @@
controls
src="{{- $src -}}"
{{ with .Get "poster" }}poster="{{- . -}}"{{ end }}
{{ with .Get "autoplay" }}autoplay{{ end }}
{{ if eq (.Get "autoplay") "true" }}autoplay{{ end }}
{{ if eq (.Get "muted") "true" }}muted{{ end }}
>
<p>
Your browser doesn't support HTML5 video. Here is a