aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/video-container.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-01-22 02:42:39 -0500
committertdro <tdro@noreply.example.com>2023-01-22 02:42:39 -0500
commit6c889c658ed71bdc18e5b767053530618dcf1759 (patch)
tree19d00ab286dd3b73aa7b0b03e5ca1aecee45f3ef /themes/default/layouts/partials/video-container.html
parent52a3cc202f4f58ee9326924b3a0ecbc29af083b1 (diff)
downloadcanory-6c889c658ed71bdc18e5b767053530618dcf1759.tar.gz
canory-6c889c658ed71bdc18e5b767053530618dcf1759.tar.bz2
canory-6c889c658ed71bdc18e5b767053530618dcf1759.zip
themes/default/layouts: Tighten up the markup
Might be able to get free computation..
Diffstat (limited to 'themes/default/layouts/partials/video-container.html')
-rw-r--r--themes/default/layouts/partials/video-container.html19
1 files changed, 11 insertions, 8 deletions
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 }}>
- <source src="{{ $source }}{{ $timestamp }}">
- {{ print "Video: " $caption "." | markdownify }}
- <p>
- Sorry, your browser does not support embedded videos. Here is a
- <a href="{{ .Source }}">link to the video</a> instead.
- </p>
+ {{- range $value := (split .Options " ") }}
+ {{- printf `%s=""` $value | safeHTMLAttr }}
+ {{ end -}}
+ >
+ <source src="{{ $source }}{{ $timestamp }}" />
+ {{ print "Video: " $caption "." | markdownify }}
+ <p>
+ Sorry, your browser does not support embedded videos. Here is a
+ <a href="{{ .Source }}">link to the video</a> instead.
+ </p>
</video>
<footer>
{{ $caption | markdownify }}
- <br>
+ <br />
Index: {{ with $cache }} {{ print "[Cache](" . ")" | markdownify }} &middot; {{ end }}
{{ print "[Source](" .Source ")" | markdownify }}
</footer>