mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
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>
This commit is contained in:
parent
70f431ea18
commit
9b464bd9fc
1 changed files with 1 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue