Add meta description to header

Based on hugo docs: https://gohugo.io/variables/site/#example-site-params
And developers.google recommendations: https://developers.google.com/web/tools/lighthouse/audits/description?utm_source=lighthouse&utm_medium=devtools
This commit is contained in:
Artur Zylinski 2019-10-13 23:25:56 +03:00 committed by Bjørn Erik Pedersen
parent 397b547358
commit b6a5534d1b
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@
{{- else -}}
<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
{{- end }}
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
<!-- CSS -->
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">