diff options
author | Humberto Rocha <humrochagf@gmail.com> | 2019-07-31 22:18:09 +0300 |
---|---|---|
committer | Humberto Rocha <humrochagf@gmail.com> | 2019-07-31 22:18:09 +0300 |
commit | 62b39f7c4d6438fd6fe996560571ca4c5578ff94 (patch) | |
tree | bbaf97616ccad7a398e41b1e6280220f39ae60c7 /layouts/partials/blog-post-jsonld.html | |
parent | 02a9c1a51d9c5cc377b77b3f7138ba45f8f5113e (diff) |
Improve meta info
Diffstat (limited to 'layouts/partials/blog-post-jsonld.html')
-rw-r--r-- | layouts/partials/blog-post-jsonld.html | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/layouts/partials/blog-post-jsonld.html b/layouts/partials/blog-post-jsonld.html index 5127ffc..30a79bd 100644 --- a/layouts/partials/blog-post-jsonld.html +++ b/layouts/partials/blog-post-jsonld.html @@ -1,21 +1,18 @@ { "@context": "http://schema.org", "@type": "BlogPosting", - "headline": "{{ .Title }}", "url": "{{ .Permalink }}", - "datePublished": "{{ .PublishDate.Format "2006-01-02" }}", + "headline": "{{ .Title }}", "description": "{{ .Description }}", + "datePublished": "{{ .PublishDate.Format "2006-01-02" }}", {{ if .Params.Tags }} - "keywords": "{{ delimit .Params.Tags " " }}", + "keywords": "{{ delimit .Params.Tags "," }}", + {{ end }} + {{ if .Params.shareImage }} + "image": "{{ .Params.shareImage | absURL }}", + {{ else }} + "image": "{{ .Site.Params.siteLogo | absURL }}", {{ end }} - "image": { - "@type": "ImageObject", - {{ if .Params.shareImage }} - "url": "{{ .Params.shareImage | absURL }}" - {{ else }} - "url": "{{ .Site.Params.siteLogo | absURL }}" - {{ end }} - }, "author": { "@type": "Person", "name": "{{ .Site.Params.author.name }}", |