From 91a6bf35455015c77713a1bedbc8ea74d78eb2d8 Mon Sep 17 00:00:00 2001 From: Sean Dockray Date: Wed, 9 Sep 2020 12:11:09 +1000 Subject: [PATCH] changes for including soundcite --- .../sandpoints/layouts/_default/_markup/render-image.html | 7 +++++++ themes/sandpoints/layouts/partials/head.html | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/sandpoints/layouts/_default/_markup/render-image.html b/themes/sandpoints/layouts/_default/_markup/render-image.html index 0eca2c5..aee9dbc 100644 --- a/themes/sandpoints/layouts/_default/_markup/render-image.html +++ b/themes/sandpoints/layouts/_default/_markup/render-image.html @@ -38,6 +38,13 @@
{{ .Text }}
{{- end -}} +{{- else if strings.HasPrefix .Destination "soundcite:" -}} + {{- $a_destination := (substr .Destination 10) -}} + {{- if findRE "^.*static" $a_destination -}} + {{ .Text }} + {{- else -}} + {{ .Text }} + {{- end -}} {{- else if findRE "^.*static" .Destination -}} {{- .Text -}} {{- else -}} diff --git a/themes/sandpoints/layouts/partials/head.html b/themes/sandpoints/layouts/partials/head.html index 66c7150..a11094a 100644 --- a/themes/sandpoints/layouts/partials/head.html +++ b/themes/sandpoints/layouts/partials/head.html @@ -28,5 +28,6 @@ {{ $sjsopts := dict "targetPath" "js/sandpoints.js" "minify" "true"}} {{ $sjs := resources.Get "js/sandpoints.js" | js.Build $sjsopts }} - {{ block "title" . }}{{- .Title }} - {{ .Site.Title -}}{{ end }} + + {{ block "title" . }}{{- .Title }} -- {{ .Site.Title -}}{{ end }}