|
|
@@ -38,6 +38,13 @@ |
|
|
|
<div>{{ .Text }}</div> |
|
|
|
<audio src="{{- $a_destination | safeURL -}}" preload="metadata" controls="true"></audio> |
|
|
|
{{- end -}} |
|
|
|
{{- else if strings.HasPrefix .Destination "soundcite:" -}} |
|
|
|
{{- $a_destination := (substr .Destination 10) -}} |
|
|
|
{{- if findRE "^.*static" $a_destination -}} |
|
|
|
<span class="soundcite" data-url="{{- (replaceRE "^.*static" "" $a_destination ) | safeURL -}}">{{ .Text }}</span> |
|
|
|
{{- else -}} |
|
|
|
<span class="soundcite" data-url="{{- $a_destination | safeURL -}}">{{ .Text }}</span> |
|
|
|
{{- end -}} |
|
|
|
{{- else if findRE "^.*static" .Destination -}} |
|
|
|
<img src="{{- (replaceRE "^.*static" "" .Destination ) | safeURL -}}" alt="{{- .Text -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} /> |
|
|
|
{{- else -}} |
|
|
|