You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB
HTML

{{ $page := . }}
{{ $author := slice }}
{{ $authors := partial "paige/func-authors.html" $page }}
{{ $color := $page.Param `paige.site.color` | default `#0d6efd` }}
{{ $description := cond $page.IsHome ($page.Description | default ($page.Param "paige.site.description")) $page.Description | markdownify | plainify | htmlUnescape }}
{{ $keywords := partial "paige/func-keywords.html" $page }}
{{ range $authors }}
{{ $author = $author | append (.Params.paige.author.name | default (.Title | markdownify | plainify | htmlUnescape)) }}
{{ end }}
{{ $author = delimit $author ", " }}
<meta charset="utf-8">
{{ with $author }}
<meta content="{{ . }}" name="author">
{{ end }}
{{ with $description }}
<meta content="{{ . }}" name="description">
{{ end }}
{{ with $keywords }}
<meta content="{{ . }}" name="keywords">
{{ end }}
<meta content="{{ $color }}" name="theme-color">
<meta content="width=device-width, initial-scale=1" name="viewport">
{{ template "_internal/opengraph.html" $page }}
{{ template "_internal/twitter_cards.html" $page }}