@levino/shipyard-blog 0.3.0 → 0.3.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.
@@ -22,7 +22,7 @@ const { entry } = Astro.props;
22
22
  const { Content, headings } = await render(entry);
23
23
  ---
24
24
 
25
- <Layout>
25
+ <Layout title={entry.data.title}>
26
26
  <div>
27
27
  <div class="prose mx-auto w-full px-8">
28
28
  <Content />
@@ -22,7 +22,7 @@ const { locale } = Astro.params;
22
22
  const formatDate = new Intl.DateTimeFormat(locale).format;
23
23
  ---
24
24
 
25
- <Layout>
25
+ <Layout title="Blog">
26
26
  <div class="mx-auto max-w-prose px-8">
27
27
  {
28
28
  entries.map(async (entry) => (
@@ -1,7 +1,13 @@
1
1
  ---
2
2
  import { getCollection } from "astro:content";
3
3
  import { Page as BaseLayout } from "@levino/shipyard-base/layouts";
4
+
5
+ type Props = {
6
+ title?: string;
7
+ };
8
+
4
9
  const locale = Astro.currentLocale;
10
+ const { title } = Astro.props;
5
11
  const entry = await getCollection("blog")
6
12
  .then((posts) =>
7
13
  posts.toSorted((a, b) => b.data.date.getTime() - a.data.date.getTime()),
@@ -20,6 +26,6 @@ const entry = await getCollection("blog")
20
26
  );
21
27
  ---
22
28
 
23
- <BaseLayout sidebarNavigation={entry}>
29
+ <BaseLayout title={title} sidebarNavigation={entry}>
24
30
  <slot />
25
31
  </BaseLayout>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levino/shipyard-blog",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -17,7 +17,7 @@
17
17
  "author": "",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@levino/shipyard-base": "^0.3.0"
20
+ "@levino/shipyard-base": "^0.4.1"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "astro": "^5"