diff options
-rw-r--r-- | layouts/shortcodes/vidfigure.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/vidloop.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/vidfigure.html b/layouts/shortcodes/vidfigure.html index 4a18210..adc3989 100644 --- a/layouts/shortcodes/vidfigure.html +++ b/layouts/shortcodes/vidfigure.html @@ -5,7 +5,7 @@ <a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}> {{- end }} <video controls playsinline src='{{ .Get "src" }}' - {{- if or (.Get "alt") (.Get "caption") -}} + {{- if or (.Get "alt") (.Get "caption") }} alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}" {{- end -}} {{- with .Get "width" }} width="{{ . }}"{{ end -}} diff --git a/layouts/shortcodes/vidloop.html b/layouts/shortcodes/vidloop.html index e9166fa..cf50d2b 100644 --- a/layouts/shortcodes/vidloop.html +++ b/layouts/shortcodes/vidloop.html @@ -5,7 +5,7 @@ <a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}> {{- end }} <video muted autoplay loop playsinline src='{{ .Get "src" }}' - {{- if or (.Get "alt") (.Get "caption") -}} + {{- if or (.Get "alt") (.Get "caption") }} alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}" {{- end -}} {{- with .Get "width" }} width="{{ . }}"{{ end -}} |