Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgursi26 <75204369+gursi26@users.noreply.github.com>2022-10-22 13:13:24 +0300
committerGitHub <noreply@github.com>2022-10-22 13:13:24 +0300
commit9b464bd9fc23c0cc3d36ba9cd7dbebcfda89739a (patch)
tree9e16d4f9a5dbdeb4323dcfaa95f07cff821b72e9
parent70f431ea1803b2bf6daa8e964064bb8ecc9fa70a (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.html1
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>