io-sanita-theme 2.5.0 → 2.5.2
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,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.5.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.5.1...2.5.2) (2025-03-05)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* homeschema check content ([f84fe73](https://github.com/RedTurtle/io-sanita-theme/commit/f84fe73bb03318ecd21a8828a159c5bcfb025b70))
|
|
8
|
+
* styles for inline.field with blocks widget without helper ([d8e48c3](https://github.com/RedTurtle/io-sanita-theme/commit/d8e48c308ce360121d2f46252f7ecd9f2e13d0f8))
|
|
9
|
+
|
|
10
|
+
## [2.5.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.5.0...2.5.1) (2025-03-05)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* schemaorg component without content ([e2d0fb5](https://github.com/RedTurtle/io-sanita-theme/commit/e2d0fb52992d5df0fef1569cbbcfcc8ea7603494))
|
|
15
|
+
|
|
3
16
|
## [2.5.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.4.3...2.5.0) (2025-03-05)
|
|
4
17
|
|
|
5
18
|
### Features
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { SchemaOrg, getSiteProperty } from 'io-sanita-theme/helpers';
|
|
|
6
6
|
const HomeSchemaOrg = ({ content }) => {
|
|
7
7
|
const intl = useIntl();
|
|
8
8
|
let schemaOrg = null;
|
|
9
|
-
if (content['@type'] == 'Plone Site' || content['@type'] == 'LRF') {
|
|
9
|
+
if (content?.['@type'] == 'Plone Site' || content?.['@type'] == 'LRF') {
|
|
10
10
|
const name = SiteProperty({
|
|
11
11
|
property: 'site_title',
|
|
12
12
|
defaultValue: getSiteProperty('siteTitle', intl.locale),
|
|
@@ -28,9 +28,10 @@ const getSiteTitle = () => {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
const SchemaOrg = ({ content, schema = {} }) => {
|
|
31
|
+
const contentSchema = content ? { name: content.title } : {};
|
|
31
32
|
let schemaOrg = {
|
|
32
33
|
'@context': 'https://schema.org',
|
|
33
|
-
|
|
34
|
+
...contentSchema,
|
|
34
35
|
...schema,
|
|
35
36
|
};
|
|
36
37
|
|