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:
parent
397b547358
commit
b6a5534d1b
|
@ -13,6 +13,7 @@
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
|
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
|
||||||
|
|
Loading…
Reference in New Issue