Use tag name in keywords meta tag

This commit is contained in:
BBaoVanC 2022-05-18 15:01:06 -05:00
parent 73ef9cc7a6
commit e8be3ae45b
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -21,6 +21,10 @@
<meta itemprop="image" content="{{ $featured.Permalink }}">
{{ end }}
{{ with .Params.tags }}
<meta itemprop="keywords" content="{{ delimit . ", " }}">
{{ with (.GetTerms "tags") }}
{{ $tags := slice }}
{{ range . }}
{{ $tags = $tags | append .LinkTitle }}
{{ end }}
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
{{ end }}