Merge pull request #846 from markleetw/add-publisher-to-strutured-data

Add "publisher" to structured data
pull/847/head
Ruipeng Zhang 2021-02-20 07:39:02 -05:00 committed by GitHub
commit 1c22f56d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -141,10 +141,12 @@ module.exports = class extends Component {
facebookAppId={open_graph.fb_app_id} /> : null}
{typeof structured_data === 'object' && structured_data !== null ? <StructuredData
title={structured_data.title || config.title}
title={structured_data.title || page.title || config.title}
description={structured_data.description || page.description || page.excerpt || page.content || config.description}
url={structured_data.url || page.permalink || url}
author={structured_data.author || config.author}
publisher={structured_data.publisher || config.title}
publisherLogo={structured_data.publisher_logo || config.logo}
date={page.date}
updated={page.updated}
images={structuredImages} /> : null}