diff options
author | David Wittman <dave@wittman.xyz> | 2021-05-22 17:43:57 +0300 |
---|---|---|
committer | Athul Cyriac Ajay <athul8720@gmail.com> | 2021-05-22 18:26:11 +0300 |
commit | 1f47eeb7bedefd8fee4d8bae7072766cfa2219ad (patch) | |
tree | bcbea8e5105834c63509571a0b38becf13820bca | |
parent | 11d230652b2f918cd77e2c1f3b53736aa370d65e (diff) |
Add support for meta descriptions
The meta description tag is _allegedly_ important for SEO, and it
can improve the page's summary in Google results.
-rw-r--r-- | layouts/partials/header.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 45ba700..c594dfb 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,7 +14,9 @@ {{- end -}} <meta name="viewport" content="width=device-width, initial-scale=1"> - + {{- if isset .Site.Params "description" }} + <meta name="description" content="{{ .Site.Params.description }}" /> + {{- end }} <meta property="og:image" content="{{ .Site.Params.og_image }}"/> {{ with .OutputFormats.Get "rss" -}} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} |