Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/capnfabs/paperesque.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Tamp <fabian.tamp@gmail.com>2021-05-15 20:35:49 +0300
committerFabian Tamp <fabian.tamp@gmail.com>2021-05-15 20:35:49 +0300
commitf886ec19281c02837ebd7ba71fdbcdcf98060f74 (patch)
treea103105616f52c5233abd544c017109534ed21f9
parentcb6b0f8f2418cda257b1b5b6f224965349952f97 (diff)
fix vidlinks
-rw-r--r--layouts/shortcodes/vidfigure.html2
-rw-r--r--layouts/shortcodes/vidloop.html2
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 -}}