@griddo/cx 11.0.18 → 11.0.20

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.
@@ -132,7 +132,7 @@ async function uploadRenderedSearchContentToAPI(
132
132
 
133
133
  for await (const store of storePages) {
134
134
  const {
135
- context: { page, openGraph },
135
+ context: { page, openGraph, pageMetadata },
136
136
  } = store;
137
137
 
138
138
  const { compose } = page.fullPath;
@@ -144,11 +144,15 @@ async function uploadRenderedSearchContentToAPI(
144
144
  const pageObject: PostSearchInfoProps = {
145
145
  siteId: page.site,
146
146
  pageId: page.id,
147
- title: page.pageMetaData?.title || openGraph.title || page.title,
147
+ // `pageMetadata.title` has already a fallback `metatitle ||
148
+ // pageTitle` so probably `title` never will be take the
149
+ // `openGraph?.title` value. Only when the `metatitle` and
150
+ // `pageTitle` are empty.
151
+ title: pageMetadata?.title || openGraph?.title,
148
152
  languageId: page.language,
149
153
  url: page.fullUrl,
150
154
  template: page.template.templateType || page.templateId,
151
- description: page.pageMetaData?.description || openGraph.description,
155
+ description: pageMetadata?.description || openGraph?.description,
152
156
  image: openGraph.image,
153
157
  content,
154
158
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "11.0.18",
4
+ "version": "11.0.20",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -60,7 +60,7 @@
60
60
  "@babel/preset-env": "7.24.7",
61
61
  "@babel/preset-react": "7.24.7",
62
62
  "@babel/preset-typescript": "7.24.7",
63
- "@griddo/core": "11.0.18",
63
+ "@griddo/core": "11.0.20",
64
64
  "@svgr/webpack": "8.1.0",
65
65
  "axios": "^1.7.4",
66
66
  "babel-loader": "9.1.3",
@@ -127,5 +127,5 @@
127
127
  "publishConfig": {
128
128
  "access": "public"
129
129
  },
130
- "gitHead": "9d2d527ba1cce8195db081b51b2ae4cdb08dd74d"
130
+ "gitHead": "0fbed6734ed008044d435f2b5e4587563445cf1c"
131
131
  }