Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit ef17120

Browse files
committed
Rearrange seo proptypes, add canonical & breadcrumbs
1 parent 9721d8c commit ef17120

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

functions/getPagePropTypes.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ export const seoSocialPropTypes = {
2121
// Yoast SEO prop types.
2222
export const seoPropTypes = {
2323
seo: PropTypes.shape({
24-
siteTitle: PropTypes.string,
25-
siteDescription: PropTypes.string,
26-
title: PropTypes.string,
24+
breadcrumbs: PropTypes.array,
25+
canonical: PropTypes.string,
2726
description: PropTypes.string,
28-
url: PropTypes.string,
2927
metaRobotsIndex: PropTypes.string,
3028
metaRobotsFollow: PropTypes.string,
3129
opengraphAuthor: PropTypes.string,
@@ -35,6 +33,10 @@ export const seoPropTypes = {
3533
altText: PropTypes.string,
3634
sourceUrl: PropTypes.string
3735
}),
36+
siteTitle: PropTypes.string,
37+
siteDescription: PropTypes.string,
38+
title: PropTypes.string,
39+
url: PropTypes.string,
3840
...seoSocialPropTypes
3941
})
4042
}

0 commit comments

Comments
 (0)