blog/themes/ficurinia/layouts/partials/head_meta_seo.html

16 lines
552 B
HTML
Raw Normal View History

2023-04-29 14:12:36 +00:00
<meta name="author" content="{{ .Site.Params.Author }}" />
{{ if .IsPage }}
{{ if .Params.tags }}
<meta name="keywords" content='{{ delimit (sort .Params.tags) ", "}}' />
{{ end }}
{{ if .Params.description }}
<meta name="description" content="{{ .Params.description }}" />
{{ else }}
<meta name="description" content="{{ substr .Summary 20 }}" />
{{ end }}
{{ else }}
{{ if .Site.Params.description }}
<meta name="description" content="{{ .Site.Params.description }}" />
{{ end }}
{{ end }}