From e0ccc70182a30ce4a70bffd2a31f1edf8124334a Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 14 Feb 2025 00:42:40 -0800 Subject: [PATCH] Move author meta logic out of tag --- layouts/partials/paige/metas.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/layouts/partials/paige/metas.html b/layouts/partials/paige/metas.html index 26713d82..c0cbcfd4 100644 --- a/layouts/partials/paige/metas.html +++ b/layouts/partials/paige/metas.html @@ -1,8 +1,16 @@ {{ $page := . }} +{{ $author := slice }} +{{ $authors := partial "paige/func-authors.html" $page }} {{ $description := $page.Description | markdownify | plainify | htmlUnescape }} {{ $keywords := slice }} +{{ range $authors }} + {{ $author = $author | append (.Title | markdownify | plainify | htmlUnescape) }} +{{ end }} + +{{ $author = delimit $author ", " }} + {{ with $page.Keywords }} {{ $keywords = . }} {{ end }} @@ -27,14 +35,8 @@ -{{ with partial "paige/func-authors.html" $page }} - {{ $authors := slice }} - - {{ range . }} - {{ $authors = $authors | append (.Title | markdownify | plainify | htmlUnescape) }} - {{ end }} - - +{{ with $author }} + {{ end }} {{ with $description }}