Add support for meta descriptions

The meta description tag is _allegedly_ important for SEO, and it
can improve the page's summary in Google results.
This commit is contained in:
David Wittman 2021-05-22 09:43:57 -05:00 committed by Athul Cyriac Ajay
parent 11d230652b
commit 1f47eeb7be

View file

@ -14,7 +14,9 @@
{{- end -}}
<meta name="viewport" content="width=device-width, initial-scale=1">
{{- if isset .Site.Params "description" }}
<meta name="description" content="{{ .Site.Params.description }}" />
{{- end }}
<meta property="og:image" content="{{ .Site.Params.og_image }}"/>
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}