From 6c889c658ed71bdc18e5b767053530618dcf1759 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 22 Jan 2023 02:42:39 -0500 Subject: themes/default/layouts: Tighten up the markup Might be able to get free computation.. --- themes/default/layouts/partials/video-container.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'themes/default/layouts/partials/video-container.html') diff --git a/themes/default/layouts/partials/video-container.html b/themes/default/layouts/partials/video-container.html index bae0cbb..7d934e6 100644 --- a/themes/default/layouts/partials/video-container.html +++ b/themes/default/layouts/partials/video-container.html @@ -56,17 +56,20 @@ {{ with .Poster }} poster="{{ . }}" {{ end -}} {{ with .Width }} width="{{ . }}" {{ end -}} {{ with .Height }} height="{{ . }}" {{ end -}} - {{ .Options | safeHTMLAttr }}> - - {{ print "Video: " $caption "." | markdownify }} -

- Sorry, your browser does not support embedded videos. Here is a - link to the video instead. -

+ {{- range $value := (split .Options " ") }} + {{- printf `%s=""` $value | safeHTMLAttr }} + {{ end -}} + > + + {{ print "Video: " $caption "." | markdownify }} +

+ Sorry, your browser does not support embedded videos. Here is a + link to the video instead. +

-- cgit v1.2.3