diff options
author | undergroundwires <undergroundwires@users.noreply.github.com> | 2020-03-13 17:14:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 18:14:22 +0100 |
commit | 13ef4c1efc70d601bcd8efa5bca53419003b5ea1 (patch) | |
tree | 9602533fdb1c16b9f0da8b655a4aa89de4752948 /layouts/partials/docs/html-head.html | |
parent | d7def135c90575c0fadb66e97b546046d57df83b (diff) |
prioritize more related parameters for description #176 (#177)
Diffstat (limited to 'layouts/partials/docs/html-head.html')
-rw-r--r-- | layouts/partials/docs/html-head.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 0e6d06e..6e3067e 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -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> |