From e920fbfaf475b4a549312b6ac3b59d74cf248ba3 Mon Sep 17 00:00:00 2001 From: Sean Dockray Date: Sat, 5 Sep 2020 23:25:42 +1000 Subject: [PATCH] Adding HTML5 audio (using image markdown) --- .../layouts/_default/_markup/render-image.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/themes/sandpoints/layouts/_default/_markup/render-image.html b/themes/sandpoints/layouts/_default/_markup/render-image.html index 3fc348d..5521176 100644 --- a/themes/sandpoints/layouts/_default/_markup/render-image.html +++ b/themes/sandpoints/layouts/_default/_markup/render-image.html @@ -35,6 +35,15 @@ {{- else -}} {{- $text_link -}}⦚topic:{{- $t_destination -}} not found {{- end -}} +{{- else if strings.HasPrefix .Destination "audio:" -}} + {{- $a_destination := (substr .Destination 6) -}} + {{- if findRE "^.*static" $a_destination -}} +
{{ .Text }}
+ + {{- else -}} +
{{ .Text }}
+ + {{- end -}} {{- else if findRE "^.*static" .Destination -}} {{- .Text -}} {{- else -}}