From 4eec2d8c4df44a361b3c85227d7f5f049ef09099 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 7 Nov 2021 15:47:32 -0600 Subject: [PATCH] Use a less hacky solution to fix trailing newline in render-link.html --- layouts/_default/_markup/render-link.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index a8120b2..5a30c37 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1 +1,8 @@ -{{ .Text | safeHTML }}{{/* DO NOT REMOVE THE TRAILING NEWLINE HERE -- it prevents there from being whitespace in between the link and the next word/element (for example: if there's a period right after a link) */}} \ No newline at end of file + + {{- .Text | safeHTML -}} + +{{- print "" -}}