io-sanita-theme 2.5.0 → 2.5.1

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.5.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.5.0...2.5.1) (2025-03-05)
4
+
5
+ ### Bug Fixes
6
+
7
+ * schemaorg component without content ([e2d0fb5](https://github.com/RedTurtle/io-sanita-theme/commit/e2d0fb52992d5df0fef1569cbbcfcc8ea7603494))
8
+
3
9
  ## [2.5.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.4.3...2.5.0) (2025-03-05)
4
10
 
5
11
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -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
- name: content.title,
34
+ ...contentSchema,
34
35
  ...schema,
35
36
  };
36
37