@uniweb/core 1.5.1 → 1.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/package.json +2 -2
- package/src/page.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vitest": "^4.1.7"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@uniweb/semantic-parser": "~1.13.
|
|
56
|
+
"@uniweb/semantic-parser": "~1.13.1",
|
|
57
57
|
"@uniweb/theming": "~1.2.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
package/src/page.js
CHANGED
|
@@ -218,8 +218,10 @@ export default class Page {
|
|
|
218
218
|
alternates: website?.getPageAlternates?.(this) ?? [],
|
|
219
219
|
og: {
|
|
220
220
|
// Page content wins; site-level seo only fills gaps. Image is the
|
|
221
|
-
// exception authors most want cascaded (the shared social card).
|
|
222
|
-
title
|
|
221
|
+
// exception authors most want cascaded (the shared social card). And
|
|
222
|
+
// the home page's title, which is its name in the menu, so "Home" was
|
|
223
|
+
// what the whole site shared as; there the site's own title is the one.
|
|
224
|
+
title: this.seo.ogTitle || (this.isIndex && site.ogTitle) || resolvedTitle || site.ogTitle,
|
|
223
225
|
description: this.seo.ogDescription || own || site.ogDescription || home,
|
|
224
226
|
image: image ? absoluteUrl(address, image) || image : null,
|
|
225
227
|
url: canonical,
|