1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-24 13:10:18 +01:00

Configurable keywords for blog posts.

This commit is contained in:
Frank Tegtmeyer 2018-02-02 11:56:19 +01:00
parent 65a909bd41
commit b77fe77932

View File

@ -39,9 +39,9 @@
"@type": "Person",
"name": "{{ .Params.author | default .Site.Params.author }}"
}
{{- if or (.Params.categories) (.Params.tags) -}}
{{- if or (.Params.keywords) (or (.Params.categories) (.Params.tags)) -}}
,
"keywords": "{{ delimit (union .Params.categories .Params.tags) ", " }}"
"keywords": "{{ delimit (union .Params.keywords (union .Params.categories .Params.tags)) ", " }}"
{{- end }}
{{- with .Params.description -}}