diff options
author | gursi26 <75204369+gursi26@users.noreply.github.com> | 2022-10-22 13:13:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 13:13:24 +0300 |
commit | 9b464bd9fc23c0cc3d36ba9cd7dbebcfda89739a (patch) | |
tree | 9e16d4f9a5dbdeb4323dcfaa95f07cff821b72e9 | |
parent | 70f431ea1803b2bf6daa8e964064bb8ecc9fa70a (diff) |
feat(page): add `keywords` front matter field for better SEO (#664)
* added keywords metadata tag for google SEO
* fix: avoid empty keywords meta tag
Co-authored-by: Jimmy Cai <github@jimmycai.com>
-rw-r--r-- | layouts/partials/head/head.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index 4d89b89..be63710 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -3,6 +3,7 @@ {{- $description := partialCached "data/description" . .RelPermalink -}} <meta name='description' content='{{ $description }}'> +{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }} {{- $title := partialCached "data/title" . .RelPermalink -}} <title>{{ $title }}</title> |