diff options
author | Fabian Tamp <fabian.tamp@gmail.com> | 2021-05-15 20:35:49 +0300 |
---|---|---|
committer | Fabian Tamp <fabian.tamp@gmail.com> | 2021-05-15 20:35:49 +0300 |
commit | f886ec19281c02837ebd7ba71fdbcdcf98060f74 (patch) | |
tree | a103105616f52c5233abd544c017109534ed21f9 | |
parent | cb6b0f8f2418cda257b1b5b6f224965349952f97 (diff) |
fix vidlinks
-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 -}} |