@karaoke-cms/theme-blog 0.9.2 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@karaoke-cms/theme-blog",
3
3
  "type": "module",
4
- "version": "0.9.2",
4
+ "version": "0.9.3",
5
5
  "description": "Blog theme for karaoke-cms — editorial layout with featured hero, card grid, and cover images",
6
6
  "main": "./src/index.ts",
7
7
  "exports": {
@@ -21,10 +21,10 @@
21
21
  "@karaoke-cms/astro": "^0.9.2"
22
22
  },
23
23
  "devDependencies": {
24
- "astro": "^6.0.8",
25
- "@karaoke-cms/astro": "0.9.2"
24
+ "@karaoke-cms/astro": "workspace:*",
25
+ "astro": "^6.0.8"
26
26
  },
27
27
  "scripts": {
28
28
  "test": "echo \"Stub — no tests\""
29
29
  }
30
- }
30
+ }
@@ -1,12 +1,12 @@
1
1
  ---
2
- import Base from '@karaoke-cms/astro/layouts/Base.astro';
2
+ import DefaultPage from '@karaoke-cms/astro/layouts/DefaultPage.astro';
3
3
  import { siteTitle } from 'virtual:karaoke-cms/config';
4
4
  ---
5
5
 
6
- <Base title={`404 — ${siteTitle}`}>
6
+ <DefaultPage title={`404 — ${siteTitle}`}>
7
7
  <div style="padding: 4rem 0; text-align: center;">
8
8
  <h1 style="font-size: 5rem; margin-bottom: 0.5rem; letter-spacing: -0.04em;">404</h1>
9
9
  <p style="color: var(--color-muted); margin-bottom: 2rem;">Page not found.</p>
10
10
  <a href="/">← Home</a>
11
11
  </div>
12
- </Base>
12
+ </DefaultPage>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import { getCollection, render } from 'astro:content';
3
- import Base from '@karaoke-cms/astro/layouts/Base.astro';
3
+ import DefaultPage from '@karaoke-cms/astro/layouts/DefaultPage.astro';
4
4
  import ModuleLoader from '@karaoke-cms/astro/components/ModuleLoader.astro';
5
5
  import { siteTitle } from 'virtual:karaoke-cms/config';
6
6
 
@@ -29,7 +29,7 @@ const related = relatedIds.length > 0
29
29
  : [];
30
30
  ---
31
31
 
32
- <Base title={`${entry.data.title} — ${siteTitle}`} description={entry.data.description} type="article">
32
+ <DefaultPage title={`${entry.data.title} — ${siteTitle}`} description={entry.data.description} type="article">
33
33
  <article>
34
34
  {coverImage && <img src={coverImage} alt="" class="post-cover" />}
35
35
  <div class="post-header">
@@ -66,4 +66,4 @@ const related = relatedIds.length > 0
66
66
  </div>
67
67
  </article>
68
68
  <ModuleLoader comments={entry.data.comments} />
69
- </Base>
69
+ </DefaultPage>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import { getCollection } from 'astro:content';
3
- import Base from '@karaoke-cms/astro/layouts/Base.astro';
3
+ import DefaultPage from '@karaoke-cms/astro/layouts/DefaultPage.astro';
4
4
  import PostCard from '../../components/PostCard.astro';
5
5
  import { siteTitle } from 'virtual:karaoke-cms/config';
6
6
 
@@ -10,7 +10,7 @@ const posts = (await getCollection('blog', ({ data }) => data.publish === true))
10
10
  type Extended = { cover_image?: string; abstract?: string };
11
11
  ---
12
12
 
13
- <Base title={`Blog — ${siteTitle}`}>
13
+ <DefaultPage title={`Blog — ${siteTitle}`}>
14
14
  <div class="listing-header">
15
15
  <h1>Blog</h1>
16
16
  </div>
@@ -33,4 +33,4 @@ type Extended = { cover_image?: string; abstract?: string };
33
33
  <p>Create a Markdown file in your vault's <code>blog/</code> folder and set <code>publish: true</code>.</p>
34
34
  </div>
35
35
  )}
36
- </Base>
36
+ </DefaultPage>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import { getCollection } from 'astro:content';
3
- import Base from '@karaoke-cms/astro/layouts/Base.astro';
3
+ import DefaultPage from '@karaoke-cms/astro/layouts/DefaultPage.astro';
4
4
  import FeaturedHero from '../components/FeaturedHero.astro';
5
5
  import PostCard from '../components/PostCard.astro';
6
6
  import { siteTitle, siteDescription } from 'virtual:karaoke-cms/config';
@@ -18,7 +18,7 @@ const gridPosts = featuredPost
18
18
  : allPosts.slice(0, 6);
19
19
  ---
20
20
 
21
- <Base title={siteTitle} description={siteDescription}>
21
+ <DefaultPage title={siteTitle} description={siteDescription}>
22
22
  {featuredPost && (
23
23
  <FeaturedHero
24
24
  title={featuredPost.data.title}
@@ -52,5 +52,5 @@ const gridPosts = featuredPost
52
52
  <p>Add a Markdown file to your vault's <code>blog/</code> folder with <code>publish: true</code>.</p>
53
53
  </div>
54
54
  )}
55
- </Base>
55
+ </DefaultPage>
56
56
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import { getCollection } from 'astro:content';
3
- import Base from '@karaoke-cms/astro/layouts/Base.astro';
3
+ import DefaultPage from '@karaoke-cms/astro/layouts/DefaultPage.astro';
4
4
  import { siteTitle } from 'virtual:karaoke-cms/config';
5
5
 
6
6
  export async function getStaticPaths() {
@@ -25,7 +25,7 @@ export async function getStaticPaths() {
25
25
  const { tag, entries } = Astro.props;
26
26
  ---
27
27
 
28
- <Base title={`#${tag} — ${siteTitle}`}>
28
+ <DefaultPage title={`#${tag} — ${siteTitle}`}>
29
29
  <div class="listing-header">
30
30
  <h1>#{tag}</h1>
31
31
  <p><a href="/tags">← All tags</a></p>
@@ -40,4 +40,4 @@ const { tag, entries } = Astro.props;
40
40
  </li>
41
41
  ))}
42
42
  </ul>
43
- </Base>
43
+ </DefaultPage>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import { getCollection } from 'astro:content';
3
- import Base from '@karaoke-cms/astro/layouts/Base.astro';
3
+ import DefaultPage from '@karaoke-cms/astro/layouts/DefaultPage.astro';
4
4
  import { siteTitle } from 'virtual:karaoke-cms/config';
5
5
 
6
6
  const posts = await getCollection('blog', ({ data }) => data.publish === true);
@@ -15,7 +15,7 @@ for (const entry of posts) {
15
15
  const tags = [...counts.entries()].sort((a, b) => a[0].localeCompare(b[0]));
16
16
  ---
17
17
 
18
- <Base title={`Tags — ${siteTitle}`}>
18
+ <DefaultPage title={`Tags — ${siteTitle}`}>
19
19
  <div class="listing-header">
20
20
  <h1>Tags</h1>
21
21
  </div>
@@ -34,4 +34,4 @@ const tags = [...counts.entries()].sort((a, b) => a[0].localeCompare(b[0]));
34
34
  <p>Tags are added to posts via the <code>tags</code> frontmatter field.</p>
35
35
  </div>
36
36
  )}
37
- </Base>
37
+ </DefaultPage>