diff --git a/customizations/Dotawo/layouts/_default/_markup/render-image.html b/customizations/Dotawo/layouts/_default/_markup/render-image.html index fad8dcd..15d0d42 100644 --- a/customizations/Dotawo/layouts/_default/_markup/render-image.html +++ b/customizations/Dotawo/layouts/_default/_markup/render-image.html @@ -27,9 +27,9 @@ {{ end }} {{ .Page.Scratch.Add "bibs" (slice (slice $bibhref $bibtitle)) }} {{- if not $text_link -}} - {{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.bib⁄‘{{- $b.title -}}’. {{- with $b.publisher -}}{{- . -}}.{{- end -}} + {{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.bib⁄‘{{- $b.title -}}’. {{- with $b.publisher -}}{{- . -}}.{{- end -}} {{- else -}} - bib⁄{{- $text_link -}} + bib⁄{{- $text_link -}} {{- end -}} {{- else -}} {{- $text_link -}}⦚bib:{{- $destination -}} not found diff --git a/customizations/Dotawo/layouts/_default/_markup/render-link.html b/customizations/Dotawo/layouts/_default/_markup/render-link.html index b81c7a4..ea315fc 100644 --- a/customizations/Dotawo/layouts/_default/_markup/render-link.html +++ b/customizations/Dotawo/layouts/_default/_markup/render-link.html @@ -1 +1 @@ -{{- .Page.Scratch.Add "urls" (slice .Destination) -}}{{- $t := .Text -}}{{- $sup := "" -}}{{- if and (strings.HasPrefix .Destination "{") (.Destination | strings.Count "}") -}}{{- range first 1 (split .Destination "}") -}}{{- range $frmt := (split (substr . 1) ",") -}}{{- if eq $frmt "sc" -}}{{- $t -}}{{- end -}}{{- end -}}{{- end -}}{{- else }}{{- if strings.HasPrefix .Destination "http" -}}{{- $sup = "www" -}}{{- end -}}{{- if strings.HasPrefix .Destination "#" -}}{{- $sup = "§" -}}{{- end -}}{{- $sup -}}⁄{{ .Text | safeHTML }}{{- end -}} +{{- .Page.Scratch.Add "urls" (slice .Destination) -}}{{- $t := .Text -}}{{- $sup := "" -}}{{- if and (strings.HasPrefix .Destination "{") (.Destination | strings.Count "}") -}}{{- range first 1 (split .Destination "}") -}}{{- range $frmt := (split (substr . 1) ",") -}}{{- if eq $frmt "sc" -}}{{- $t -}}{{- end -}}{{- end -}}{{- end -}}{{- else }}{{- if strings.HasPrefix .Destination "http" -}}{{- $sup = "www" -}}{{- end -}}{{- if strings.HasPrefix .Destination "#" -}}{{- $sup = "§" -}}{{- end -}}{{- $sup -}}⁄{{ .Text | safeHTML }}{{- end -}} diff --git a/customizations/Dotawo/layouts/partials/header.html b/customizations/Dotawo/layouts/partials/header.html index c88addd..4581621 100644 --- a/customizations/Dotawo/layouts/partials/header.html +++ b/customizations/Dotawo/layouts/partials/header.html @@ -49,7 +49,7 @@ {{ end }}
- +