@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.
- package/astro/BlogEntry.astro +1 -1
- package/astro/BlogIndex.astro +1 -1
- package/astro/Layout.astro +7 -1
- package/package.json +2 -2
package/astro/BlogEntry.astro
CHANGED
package/astro/BlogIndex.astro
CHANGED
package/astro/Layout.astro
CHANGED
|
@@ -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.
|
|
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.
|
|
20
|
+
"@levino/shipyard-base": "^0.4.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"astro": "^5"
|