aboutsummaryrefslogtreecommitdiff
path: root/themes/default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-07-10 10:38:36 -0400
committertdro <tdro@noreply.example.com>2022-07-10 10:38:36 -0400
commit820e15d2a94c3b39b942ef797df437ba834ed1ac (patch)
tree6dc0ee90ac68896dd5498f018f8907d38a6061e8 /themes/default
parenta5574eacc0561239f9989b6a73aa7e7b604c5d53 (diff)
downloadcanory-820e15d2a94c3b39b942ef797df437ba834ed1ac.tar.gz
canory-820e15d2a94c3b39b942ef797df437ba834ed1ac.tar.bz2
canory-820e15d2a94c3b39b942ef797df437ba834ed1ac.zip
themes/default/layouts/shortcodes/video: Set default implicit title
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/layouts/partials/video-container.html1
-rw-r--r--themes/default/layouts/shortcodes/video.html4
2 files changed, 3 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/video-container.html b/themes/default/layouts/partials/video-container.html
index 79df910..3f747e7 100644
--- a/themes/default/layouts/partials/video-container.html
+++ b/themes/default/layouts/partials/video-container.html
@@ -35,6 +35,7 @@
{{ with .Height }} height="{{ . }}" {{ end -}}
{{ .Options | safeHTMLAttr }}>
<source src="{{ or .Source .Cache }}{{ $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.
diff --git a/themes/default/layouts/shortcodes/video.html b/themes/default/layouts/shortcodes/video.html
index bb49f8c..c7a2999 100644
--- a/themes/default/layouts/shortcodes/video.html
+++ b/themes/default/layouts/shortcodes/video.html
@@ -8,8 +8,8 @@
{{- $height := default "" (.Get "height" | default (.Get 3)) -}}
{{- $preload := default "metadata" (.Get "preload" | default (.Get 4)) -}}
{{- $options := default "controls" (.Get "options" | default (.Get 5)) -}}
-{{- $caption := default "`HTML5` Video" (.Get "caption" | default (.Get 6)) -}}
-{{- $title := default "HTML5 Video" (.Get "title" | default (.Get 7)) -}}
+{{- $caption := default "Untitled Video" (.Get "caption" | default (.Get 6)) -}}
+{{- $title := default $caption (.Get "title" | default (.Get 7)) -}}
{{- $start := default "" (.Get "start" | default (.Get 8)) -}}
{{- $end := default "" (.Get "end" | default (.Get 9)) -}}