Process author and description meta content

This commit is contained in:
Will Faught
2025-02-14 00:15:28 -08:00
parent d49ab573c6
commit 63816ea1b0

View File

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