Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
add mainEntityOfPage to defaultStructuredData
Browse files Browse the repository at this point in the history
  • Loading branch information
B77Mills committed Oct 29, 2021
1 parent 4a308c0 commit d0b395e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module.exports = (node) => {
const defaultStruturedData = {
'@context': 'https://schema.org',
'@type': 'Article',
mainEntityOfPage: {
'@type': 'WebPage',
'@id': get(node, 'siteContext.canonicalUrl'),
},
headline: get(node, 'metadata.title'),
name: get(node, 'metadata.title'),
...(get(node, 'metadata.description') && { description: get(node, 'metadata.description') }),
Expand Down

0 comments on commit d0b395e

Please sign in to comment.