From df8a2e637ffd3c7ed9d7927b92dd37419b7a0efe Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Thu, 19 Nov 2020 18:28:17 +0100 Subject: [PATCH] Show the author in the blog homepage --- layouts/blog/list.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 669a5a2b33..98fb326413 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -11,9 +11,12 @@

{{ .Date.Format "Jan 2" }}

{{ if isset .Params "tags" }} + {{ if isset .Params "author" }} + By {{ .Params.author }} · + {{ end }} + {{ $list := .Params.tags }} {{ $len := (len $list) }} - Tags: {{ range $index, $elem := $list }} {{ $elem }} {{ if ne (add $index 1) $len }} · {{ end }} {{ end }} -- 2.49.0