astro-blog-kit 0.1.8 → 0.2.0
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.
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// ─────────────────────────────────────────────────────────────
|
|
2
|
-
// astro-blog-kit · components/BlogList/index.ts
|
|
3
|
-
// ─────────────────────────────────────────────────────────────
|
|
4
|
-
|
|
5
1
|
export { default as MagazineLayout } from "./MagazineLayout.astro";
|
|
6
2
|
export { default as GridLayout } from "./GridLayout.astro";
|
|
7
3
|
export { default as FeaturedLayout } from "./FeaturedLayout.astro";
|
|
@@ -3,11 +3,10 @@ import type { BlogListProps } from "../types";
|
|
|
3
3
|
import { getDateLocale, getBlogBase } from "../utils/i18n";
|
|
4
4
|
import MagazineLayout from "./BlogList/MagazineLayout.astro";
|
|
5
5
|
import GridLayout from "./BlogList/GridLayout.astro";
|
|
6
|
-
import ListLayout from "./BlogList/ListLayout.astro";
|
|
7
|
-
import Pagination from "./Pagination.astro";
|
|
8
|
-
|
|
9
6
|
import FeaturedLayout from "./BlogList/FeaturedLayout.astro";
|
|
10
7
|
import CardsLayout from "./BlogList/CardsLayout.astro";
|
|
8
|
+
import Pagination from "./Pagination.astro";
|
|
9
|
+
|
|
11
10
|
|
|
12
11
|
interface Props extends BlogListProps {}
|
|
13
12
|
|
|
@@ -65,7 +64,7 @@ const blogBase = getBlogBase(locale, base);
|
|
|
65
64
|
)}
|
|
66
65
|
|
|
67
66
|
{layout === "featured" && (
|
|
68
|
-
<
|
|
67
|
+
<FeaturedLayout
|
|
69
68
|
posts={posts}
|
|
70
69
|
currentPage={currentPage}
|
|
71
70
|
totalPages={totalPages}
|
package/components/index.ts
CHANGED
|
@@ -10,5 +10,6 @@ export { default as BlogPost } from "./BlogPost.astro";
|
|
|
10
10
|
export { default as Pagination } from "./Pagination.astro";
|
|
11
11
|
export { default as Comments } from "./Comments.astro";
|
|
12
12
|
export { default as CommentForm } from "./CommentForm.astro";
|
|
13
|
+
|
|
13
14
|
export { MagazineLayout, GridLayout, FeaturedLayout, CardsLayout } from "./BlogList/index.ts";
|
|
14
15
|
|
package/package.json
CHANGED