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:
parent
11d230652b
commit
1f47eeb7be
|
@ -14,7 +14,9 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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 }}"/>
|
<meta property="og:image" content="{{ .Site.Params.og_image }}"/>
|
||||||
{{ with .OutputFormats.Get "rss" -}}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
|
|
Loading…
Reference in a new issue