astro-blog-kit 0.1.8 → 0.2.1

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/bin/cli.js CHANGED
@@ -53,10 +53,12 @@ async function main() {
53
53
  }),
54
54
  defaultLayout: () => p.select({
55
55
  message: "Default layout",
56
+ // DESPUÉS
56
57
  options: [
57
58
  { value: "magazine", label: "Magazine \u2014 featured post + grid" },
58
59
  { value: "grid", label: "Grid \u2014 3 column card grid" },
59
- { value: "list", label: "List \u2014 horizontal rows" }
60
+ { value: "featured", label: "Featured \u2014 large hero + grid below" },
61
+ { value: "cards", label: "Cards \u2014 image background + text overlay" }
60
62
  ]
61
63
  }),
62
64
  locale: () => p.text({
package/cli.ts CHANGED
@@ -80,10 +80,12 @@ async function main() {
80
80
  defaultLayout: () =>
81
81
  p.select({
82
82
  message: "Default layout",
83
+ // DESPUÉS
83
84
  options: [
84
85
  { value: "magazine", label: "Magazine — featured post + grid" },
85
86
  { value: "grid", label: "Grid — 3 column card grid" },
86
- { value: "list", label: "Listhorizontal rows" },
87
+ { value: "featured", label: "Featuredlarge hero + grid below" },
88
+ { value: "cards", label: "Cards — image background + text overlay" },
87
89
  ],
88
90
  }),
89
91
 
@@ -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
- <ListLayout
67
+ <FeaturedLayout
69
68
  posts={posts}
70
69
  currentPage={currentPage}
71
70
  totalPages={totalPages}
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-blog-kit",
3
- "version": "0.1.8",
3
+ "version": "0.2.1",
4
4
  "description": "A ready-to-use blog system for Astro with WordPress headless support, optional i18n, multiple layouts, and a comment system.",
5
5
  "type": "module",
6
6
  "license": "MIT",