Configurable keywords for blog posts.

This commit is contained in:
Frank Tegtmeyer 2018-02-02 11:56:19 +01:00
parent 65a909bd41
commit b77fe77932
1 changed files with 2 additions and 2 deletions

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 -}}