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

soper-book
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
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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" . -}} {{- template "_internal/opengraph.html" . -}}
<title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title> <title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title>