Move author meta logic out of tag

This commit is contained in:
Will Faught
2025-02-14 00:42:40 -08:00
parent 7f3d7b211a
commit e0ccc70182

View File

@@ -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 @@
<meta charset="utf-8">
{{ with partial "paige/func-authors.html" $page }}
{{ $authors := slice }}
{{ range . }}
{{ $authors = $authors | append (.Title | markdownify | plainify | htmlUnescape) }}
{{ end }}
<meta content="{{ delimit $authors `, ` }}" name="author">
{{ with $author }}
<meta content="{{ . }}" name="author">
{{ end }}
{{ with $description }}