From 15406ce8ac4c3d6005fec41ce3f5c2c6fcb19745 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 9 Mar 2023 17:00:43 -0600 Subject: [PATCH] chore: check for https:// prefix Signed-off-by: jolheiser --- layouts/post/list.html | 4 ++-- layouts/post/single.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/post/list.html b/layouts/post/list.html index d921f4d..20751aa 100644 --- a/layouts/post/list.html +++ b/layouts/post/list.html @@ -15,12 +15,12 @@ {{ $s.Set "len" (len .Params.authors) }} {{ $s.Add "len" -1 }} {{ range $idx, $author := .Params.authors -}} - + {{ path.BaseName $author }} {{ if ne $idx ($s.Get "len") }}, {{end}} {{- end }} {{ else }} - + {{ path.BaseName (.Params.author | default .Site.Params.author) }} {{ end }} diff --git a/layouts/post/single.html b/layouts/post/single.html index ce38fd6..886ef0d 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -18,12 +18,12 @@ {{ $s.Set "len" (len .Params.authors) }} {{ $s.Add "len" -1 }} {{ range $idx, $author := .Params.authors -}} - + {{ path.BaseName $author }} {{ if ne $idx ($s.Get "len") }}, {{end}} {{- end }} {{ else }} - + {{ path.BaseName (.Params.author | default .Site.Params.author) }} {{ end }}