From 3bb8b95a3a832c77d78daa3ceb259afc7c370424 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Tue, 23 Mar 2021 11:28:23 +0530 Subject: [PATCH] Fix author URLs --- layouts/entry/single.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/entry/single.html b/layouts/entry/single.html index a3965ba..29a443a 100644 --- a/layouts/entry/single.html +++ b/layouts/entry/single.html @@ -10,11 +10,11 @@ {{ if and $author .Params.coauthor }}

- Written by {{ $author.name }} + Written by {{ $author.name }} {{/* if len($coauthors) < 2 */}} {{ if lt (len $coauthors) 2 }} {{ $coauthor := index .Site.Data.authors ( .Params.coauthor | default "" ) }} - and {{ $coauthor.name }} + and {{ $coauthor.name }} {{ else }} in collaboration with {{ $length := len $coauthors }} @@ -24,7 +24,7 @@ {{ if eq $i (sub $length 1) }} and {{ end }} - {{ $coauthor.name }}{{- if lt $i (sub $length 1) -}},{{- end -}} + {{ $coauthor.name }}{{- if lt $i (sub $length 1) -}},{{- end -}} {{/* if i < (length - 1) */}} {{ end }} {{ end }} @@ -34,7 +34,7 @@ {{ else if $author }}

- Written by {{ $author.name }} + Written by {{ $author.name }} on {{ .Date.Format $.Site.Params.fmt.Date }}
@@ -74,4 +74,4 @@ baguetteBox.run('.is-img-preview'); }); -{{ end }} \ No newline at end of file +{{ end }}