Skip to content

Commit 0c514eb

Browse files
wicksipediaclaude
andcommitted
Bump TinaCMS to 0.0.0-afd3b10 canary + mark primary TinaIsland
- Pin tinacms/@tinacms/cli/@tinacms/astro to 0.0.0-afd3b10-20260512095118 - Add `primary` to the page-level <TinaIsland> in index.astro, [...slug].astro, and blog/[...slug].astro so the admin opens the page's form on load instead of the multi-doc "Referenced Files" list (tinacms/tinacms#6843). Global header/footer islands stay non-primary. astro build: clean, data-tina-island-primary present on prerendered pages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a837436 commit 0c514eb

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"@astrojs/rss": "^4.0.15",
1616
"@astrojs/sitemap": "^3.7.0",
1717
"@astrojs/vercel": "^9.0.5",
18-
"@tinacms/astro": "0.0.0-4c38d0a-20260512090207",
18+
"@tinacms/astro": "0.0.0-afd3b10-20260512095118",
1919
"astro": "^5.16.0"
2020
},
2121
"devDependencies": {
22-
"@tinacms/cli": "0.0.0-4c38d0a-20260512090207",
22+
"@tinacms/cli": "0.0.0-afd3b10-20260512095118",
2323
"@types/node": "^25.1.0",
24-
"tinacms": "0.0.0-4c38d0a-20260512090207"
24+
"tinacms": "0.0.0-afd3b10-20260512095118"
2525
}
2626
}

src/pages/[...slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const config = (await getConfig()).data?.config ?? null;
2424
title={data.seoTitle || config?.seo?.title || 'TinaCMS + Astro'}
2525
description={config?.seo?.description ?? 'Welcome to my website!'}
2626
>
27-
<TinaIsland name="page" wrapper={islands.page.wrapper} params={{ slug }}>
27+
<TinaIsland name="page" wrapper={islands.page.wrapper} params={{ slug }} primary>
2828
<PageBody data={data} />
2929
</TinaIsland>
3030
</Base>

src/pages/blog/[...slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const layoutProps = {
2828
---
2929

3030
<BlogPost {...layoutProps}>
31-
<TinaIsland name="blog" wrapper={islands.blog.wrapper} params={{ slug }}>
31+
<TinaIsland name="blog" wrapper={islands.blog.wrapper} params={{ slug }} primary>
3232
<BlogBody data={data} />
3333
</TinaIsland>
3434
</BlogPost>

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const config = (await getConfig()).data?.config ?? null;
1616
title={data.seoTitle || config?.seo?.title || 'TinaCMS + Astro'}
1717
description={config?.seo?.description ?? 'Welcome to my website!'}
1818
>
19-
<TinaIsland name="page" wrapper={islands.page.wrapper} params={{ slug }}>
19+
<TinaIsland name="page" wrapper={islands.page.wrapper} params={{ slug }} primary>
2020
<PageBody data={data} />
2121
</TinaIsland>
2222
</Base>

0 commit comments

Comments
 (0)