From 2a5b15085f0add9b0a5779399719b6f08d89223f Mon Sep 17 00:00:00 2001 From: Ashpool Date: Wed, 16 Aug 2023 11:50:55 +0200 Subject: [PATCH] fix: add trailing slash to author link in blog --- src/themes/xecut_light/layouts/blog/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/themes/xecut_light/layouts/blog/single.html b/src/themes/xecut_light/layouts/blog/single.html index 4fcda02..7cebc9d 100644 --- a/src/themes/xecut_light/layouts/blog/single.html +++ b/src/themes/xecut_light/layouts/blog/single.html @@ -2,9 +2,9 @@

{{ .Title }}

Published on {{ .Date.Format "02 Jan 2006" }} {{- if isset .Params "author" }} by - {{- $authorHome := print "/~" (lower .Params.author) "/" -}} + {{- $authorHome := print "/~" (lower .Params.author) -}} {{- if (.GetPage $authorHome) }} - {{ .Params.author }} + {{ .Params.author }} {{- else }} {{ .Params.author }} {{- end -}} -- 2.45.2