Move author meta logic out of tag
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user