diff options
author | Greg Anders <greg@gpanders.com> | 2020-03-04 18:56:24 +0300 |
---|---|---|
committer | Léo De Souza <43355143+de-souza@users.noreply.github.com> | 2020-03-06 19:15:17 +0300 |
commit | 673e34c6d356ebd3dadfb244fc72166dea031705 (patch) | |
tree | 7143d069636dba31a7375069f4538bb176c311ff | |
parent | 905522e8747119f415032386800c8d6687762d01 (diff) |
Include meta description tag in <head>
-rw-r--r-- | layouts/_default/baseof.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8c412ea..eb891fc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,6 +3,13 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> + {{ if .Summary }} + <meta name="description" content="{{ .Summary }}"> + {{ else }} + {{ with site.Params.description }} + <meta name="description" content="{{ . }}"> + {{ end }} + {{ end }} {{ hugo.Generator }} {{ if site.Params.schema }}{{ template "_internal/schema.html" . }}{{ end }} {{ if site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }} |