From ec8499d071e0a92a9581123ddefb1fe7abaa44d5 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Fri, 27 Nov 2020 23:52:58 +0100 Subject: [PATCH] get rif off extra spaces in smallcaps render-link... --- .../layouts/_default/_markup/render-link.html | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/themes/sandpoints/layouts/_default/_markup/render-link.html b/themes/sandpoints/layouts/_default/_markup/render-link.html index b4d9e77..76f84b9 100644 --- a/themes/sandpoints/layouts/_default/_markup/render-link.html +++ b/themes/sandpoints/layouts/_default/_markup/render-link.html @@ -1,13 +1 @@ -{{ .Page.Scratch.Add "urls" (slice .Destination) }} -{{ $t := .Text }} -{{- 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 -}} -www⁄{{ .Text | safeHTML }} -{{ end }} +{{- .Page.Scratch.Add "urls" (slice .Destination) -}}{{- $t := .Text -}}{{- 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 -}}www⁄{{ .Text | safeHTML }}{{- end -}}