diff options
| author | tdro <tdro@noreply.example.com> | 2022-06-12 05:39:38 -0400 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2022-06-12 05:39:38 -0400 |
| commit | a409171b4fff7906c7a7780e1c50c0d40269dfe5 (patch) | |
| tree | b5b4b3f8ea4b2d91270525ba8d5d6f366c4e077d | |
| parent | 8fea3c3ba35a978b320428250fbb6b89c73945dd (diff) | |
| download | canory-a409171b4fff7906c7a7780e1c50c0d40269dfe5.tar.gz canory-a409171b4fff7906c7a7780e1c50c0d40269dfe5.tar.bz2 canory-a409171b4fff7906c7a7780e1c50c0d40269dfe5.zip | |
themes/default/layouts/shortcodes/video: Rename controls to options
| -rw-r--r-- | themes/default/layouts/partials/video-container.html | 2 | ||||
| -rw-r--r-- | themes/default/layouts/shortcodes/imgur-video.html | 6 | ||||
| -rw-r--r-- | themes/default/layouts/shortcodes/video.html | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/themes/default/layouts/partials/video-container.html b/themes/default/layouts/partials/video-container.html index 015aec8..44bbf6b 100644 --- a/themes/default/layouts/partials/video-container.html +++ b/themes/default/layouts/partials/video-container.html @@ -24,7 +24,7 @@ {{ with .Poster }} poster="{{ . }}" {{ end -}} {{ with .Width }} width="{{ . }}" {{ end -}} {{ with .Height }} height="{{ . }}" {{ end -}} - {{ .Controls | safeHTMLAttr }}> + {{ .Options | safeHTMLAttr }}> <source src="{{ or .Source .Cache }}{{ $timestamp }}"> <p> Sorry, your browser does not support embedded videos. Here is a diff --git a/themes/default/layouts/shortcodes/imgur-video.html b/themes/default/layouts/shortcodes/imgur-video.html index 72c7af3..a4ed76c 100644 --- a/themes/default/layouts/shortcodes/imgur-video.html +++ b/themes/default/layouts/shortcodes/imgur-video.html @@ -2,15 +2,15 @@ {{- $title := default "Imgur Gif" (.Get "title" | default (.Get 1)) -}} {{- $caption := default "Imgur Gif" (.Get "caption" | default (.Get 2)) -}} -{{- $controls := default "controls autoplay loop muted playsinline" - (.Get "controls" | default (.Get 3)) +{{- $options := default "controls autoplay loop muted playsinline" + (.Get "options" | default (.Get 3)) -}} {{- partial "video-container.html" (dict "Author" .Page.Section "Caption" $caption - "Controls" $controls + "Options" $options "Source" (print "https://i.imgur.com/" $id ".mp4") ) -}} diff --git a/themes/default/layouts/shortcodes/video.html b/themes/default/layouts/shortcodes/video.html index 4eb5fb6..9148853 100644 --- a/themes/default/layouts/shortcodes/video.html +++ b/themes/default/layouts/shortcodes/video.html @@ -7,7 +7,7 @@ {{- $width := default "" (.Get "width" | default (.Get 2)) -}} {{- $height := default "" (.Get "height" | default (.Get 3)) -}} {{- $preload := default "metadata" (.Get "preload" | default (.Get 4)) -}} -{{- $controls := default "controls" (.Get "controls" | default (.Get 5)) -}} +{{- $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)) -}} {{- $start := default "" (.Get "start" | default (.Get 8)) -}} @@ -17,7 +17,7 @@ (dict "Author" .Page.Section "Caption" $caption - "Controls" $controls + "Options" $options "End" $end "Height" $height "Poster" $poster |
