fix issue with json-ld

This commit is contained in:
Simon Vieille 2021-03-31 14:58:07 +02:00
parent bcd0aead3e
commit bfdca9734a

View file

@ -200,12 +200,12 @@
'name': 'Deblan blog', 'name': 'Deblan blog',
'logo': { 'logo': {
'@type': 'imageObject', '@type': 'imageObject',
'url': absolute_url(asset('build/images/logo.png')) 'url': asset('build/images/logo.png')
} }
}, },
'datePublished': post.publishedAt|date("c"), 'datePublished': post.publishedAt|date("c"),
'dateModified': post.updatedAt|date("c"), 'dateModified': post.updatedAt|date("c"),
'image': absolute_url(asset(post.image)) 'image': post.image ? asset(post.image) : null
} }
%} %}