From ca886e40752a8a30762708ea87d7228f737c0cd2 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Tue, 28 Dec 2021 14:28:08 -0500 Subject: [PATCH] fix render link for apostrophe --- layouts/_default/_markup/render-link.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index f37614f07..a9a6eca3d 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,8 +1,8 @@ {{$trimmed := strings.TrimSuffix ".md" (.Destination | safeURL)}} -{{$trimmed = replace $trimmed "%20" "-"}} +{{$trimmed = replace $trimmed "%20" "-" }} {{$external := strings.HasPrefix $trimmed "http" }} {{ if $external }} {{ .Text | safeHTML }} {{else}} -{{ .Text | safeHTML }} +{{ .Text | safeHTML }} {{end}} \ No newline at end of file