gatsby-core-theme 13.0.3 → 13.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [13.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.4...v13.0.5) (2022-10-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* schema fixes pros and cons ([b4b964d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b4b964daf51a4a0b0a065d78b1f2882d3f7092ca))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'schema-fixes' into 'master' ([b906ad2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b906ad2bff3fb73a87fc0498930772caafef64dc))
|
|
10
|
+
|
|
11
|
+
## [13.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.3...v13.0.4) (2022-10-25)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* anchor styling ([c3bb135](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c3bb135407fef23329cc701f09c3f2b03d1a2cdd))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([862c43f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/862c43f6bccc40ffe29d5592f339fdf4887f91c2))
|
|
20
|
+
|
|
1
21
|
## [13.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.2...v13.0.3) (2022-10-25)
|
|
2
22
|
|
|
3
23
|
|
package/package.json
CHANGED
package/src/helpers/schema.js
CHANGED
|
@@ -63,26 +63,34 @@ const prosAndConsData = (pageObj) => {
|
|
|
63
63
|
const prosAndConstObj =
|
|
64
64
|
pageObj?.sections?.main?.modules?.find((elm) => elm?.name === 'pros_and_cons') || {};
|
|
65
65
|
|
|
66
|
+
// There are url keys because it is required
|
|
67
|
+
// otherwise it would throw errors
|
|
66
68
|
return (
|
|
67
69
|
Object.keys(prosAndConstObj).length > 0 && {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
70
|
+
...(prosAndConstObj?.pros?.length && {
|
|
71
|
+
positiveNotes: {
|
|
72
|
+
'@type': 'ItemList',
|
|
73
|
+
itemListElement:
|
|
74
|
+
prosAndConstObj?.pros?.map((elm, index) => ({
|
|
75
|
+
'@type': 'ListItem',
|
|
76
|
+
position: index + 1,
|
|
77
|
+
url: `${getUrl('/')}#${elm}`,
|
|
78
|
+
name: elm,
|
|
79
|
+
})) || [],
|
|
80
|
+
},
|
|
81
|
+
}),
|
|
82
|
+
...(prosAndConstObj?.cons?.length && {
|
|
83
|
+
negativeNotes: {
|
|
84
|
+
'@type': 'ItemList',
|
|
85
|
+
itemListElement:
|
|
86
|
+
prosAndConstObj?.cons?.map((elm, index) => ({
|
|
87
|
+
'@type': 'ListItem',
|
|
88
|
+
position: index + 1,
|
|
89
|
+
url: `${getUrl('/')}#${elm}`,
|
|
90
|
+
name: elm,
|
|
91
|
+
})) || [],
|
|
92
|
+
},
|
|
93
|
+
}),
|
|
86
94
|
}
|
|
87
95
|
);
|
|
88
96
|
};
|