mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-18 11:47:29 -05:00
Use tag name in keywords meta tag
This commit is contained in:
@ -21,6 +21,10 @@
|
|||||||
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Params.tags }}
|
{{ with (.GetTerms "tags") }}
|
||||||
<meta itemprop="keywords" content="{{ delimit . ", " }}">
|
{{ $tags := slice }}
|
||||||
|
{{ range . }}
|
||||||
|
{{ $tags = $tags | append .LinkTitle }}
|
||||||
|
{{ end }}
|
||||||
|
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user