@karaoke-cms/astro 0.10.3 → 0.11.3
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/layouts/Base.astro +3 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karaoke-cms/astro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.3",
|
|
5
5
|
"description": "Core Astro integration for karaoke-cms — virtual config, wikilinks, handbook routes",
|
|
6
6
|
"main": "./src/index.ts",
|
|
7
7
|
"exports": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"remark-wiki-link": "^2.0.1",
|
|
38
38
|
"yaml": "^2.7.0",
|
|
39
39
|
"zod": "^4.0.0",
|
|
40
|
-
"@karaoke-cms/contracts": "0.
|
|
40
|
+
"@karaoke-cms/contracts": "0.11.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"vitest": "^4.1.1",
|
package/src/layouts/Base.astro
CHANGED
|
@@ -11,8 +11,8 @@ const { title, description, type = 'website' } = Astro.props;
|
|
|
11
11
|
const canonicalUrl = Astro.url.href;
|
|
12
12
|
|
|
13
13
|
const pageTitle = title === siteTitle
|
|
14
|
-
?
|
|
15
|
-
: `${title} —
|
|
14
|
+
? title
|
|
15
|
+
: `${title} — ${siteTitle}`;
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
<!doctype html>
|
|
@@ -28,6 +28,7 @@ const pageTitle = title === siteTitle
|
|
|
28
28
|
<meta property="og:title" content={title} />
|
|
29
29
|
<meta property="og:type" content={type} />
|
|
30
30
|
<meta property="og:url" content={canonicalUrl} />
|
|
31
|
+
<link rel="canonical" href={canonicalUrl} />
|
|
31
32
|
{description && <meta property="og:description" content={description} />}
|
|
32
33
|
<meta name="twitter:card" content="summary" />
|
|
33
34
|
<link rel="alternate" type="application/rss+xml" title={siteTitle} href="/rss.xml" />
|