From e00bf77141ece5b8c862ec5f4511e067358bd170 Mon Sep 17 00:00:00 2001 From: Yuki Joou Date: Wed, 31 May 2023 19:15:21 +0200 Subject: [PATCH] layouts: Use `delimit` for author list to make it cleaner --- layouts/_default/list.html | 4 +--- layouts/_default/single.html | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1a2ce34..f0c761b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,9 +7,7 @@

- {{ range $.Param "authors" }} - {{ . }} - {{ end }} + {{ delimit ($.Param "authors") ", " }}

diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7e31f35..ad48838 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,9 +20,7 @@

- {{ range $.Param "authors" }} - {{ . }} - {{ end }} + {{ delimit ($.Param "authors") ", " }}

{{ end }}