Process author and description meta content
This commit is contained in:
@@ -1,18 +1,20 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
|
{{ $description := $page.Description | markdownify | plainify | htmlUnescape }}
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
||||||
{{ with partial "paige/func-authors.html" $page }}
|
{{ with partial "paige/func-authors.html" $page }}
|
||||||
{{ $authors := slice }}
|
{{ $authors := slice }}
|
||||||
|
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ $authors = $authors | append .Title }}
|
{{ $authors = $authors | append (.Title | markdownify | plainify | htmlUnescape) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<meta content="{{ delimit $authors `, ` }}" name="author">
|
<meta content="{{ delimit $authors `, ` }}" name="author">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with $page.Description }}
|
{{ with $description }}
|
||||||
<meta content="{{ . }}" name="description">
|
<meta content="{{ . }}" name="description">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user