prioritize more related parameters for description #176 (#177)

This commit is contained in:
undergroundwires 2020-03-13 17:14:22 +00:00 committed by GitHub
parent d7def135c9
commit 13ef4c1efc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ partial "docs/title" . }}">
<meta name="description" content="{{ with .Description }} {{ . }} {{ else }} {{ with .Summary }} {{ . }} {{ else }} {{ with .Site.Params.description }} {{ . }} {{ else }} {{ partial "docs/title" . }} {{ end }} {{ end }} {{ end }}">
{{- template "_internal/opengraph.html" . -}}
<title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title>