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