diff options
-rw-r--r-- | layouts/partials/blog-post-jsonld.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/blog-post-jsonld.html b/layouts/partials/blog-post-jsonld.html index 5edea62..5127ffc 100644 --- a/layouts/partials/blog-post-jsonld.html +++ b/layouts/partials/blog-post-jsonld.html @@ -5,7 +5,9 @@ "url": "{{ .Permalink }}", "datePublished": "{{ .PublishDate.Format "2006-01-02" }}", "description": "{{ .Description }}", - "keywords": "{{ delimit .Params.Tags " " }}", + {{ if .Params.Tags }} + "keywords": "{{ delimit .Params.Tags " " }}", + {{ end }} "image": { "@type": "ImageObject", {{ if .Params.shareImage }} |