Move author meta logic out of tag

master
Will Faught 5 months ago
parent 7f3d7b211a
commit e0ccc70182

@ -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 }}

Loading…
Cancel
Save