astro-blog-kit 0.2.5 → 0.2.7

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
@@ -65,10 +65,12 @@ async function main() {
65
65
  { value: "cards", label: "Cards \u2014 image background + text overlay" }
66
66
  ]
67
67
  }),
68
- locale: () => p.text({
68
+ locale: () => p.select({
69
69
  message: "Default locale",
70
- placeholder: "en",
71
- initialValue: "en"
70
+ options: [
71
+ { value: "en", label: "English" },
72
+ { value: "es", label: "Espa\xF1ol" }
73
+ ]
72
74
  }),
73
75
  i18n: () => p.confirm({
74
76
  message: "Enable i18n (multiple languages)?",
package/cli.ts CHANGED
@@ -95,10 +95,12 @@ async function main() {
95
95
  }),
96
96
 
97
97
  locale: () =>
98
- p.text({
98
+ p.select({
99
99
  message: "Default locale",
100
- placeholder: "en",
101
- initialValue: "en",
100
+ options: [
101
+ { value: "en", label: "English" },
102
+ { value: "es", label: "Español" },
103
+ ],
102
104
  }),
103
105
 
104
106
  i18n: () =>
@@ -163,7 +165,7 @@ async function main() {
163
165
  LAYOUT_CLOSE: hasLayout
164
166
  ? `</Layout>`
165
167
  : ` </body>\n</html>`,
166
- ...t
168
+ ...t
167
169
  };
168
170
 
169
171
  // ── Copia archivos ────────────────────────────────────────
package/define-config.ts CHANGED
@@ -11,7 +11,7 @@ export interface BlogConfig {
11
11
  /** Posts por página. @default 5 */
12
12
  postsPerPage?: number;
13
13
  /** Layout por defecto. @default "magazine" */
14
- defaultLayout?: "grid" | "list" | "magazine";
14
+ defaultLayout?: "grid" | "magazine" | "featured" | "cards";
15
15
  /** Locale por defecto. @default "en" */
16
16
  locale?: string;
17
17
  /** Tema visual */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-blog-kit",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
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",
@@ -1,4 +1,4 @@
1
- export const prerender = false;
1
+ // export const prerender = false;
2
2
 
3
3
  import type { APIRoute } from "astro";
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { defineBlogConfig } from 'astro-blog-kit';
2
2
 
3
3
  export default defineBlogConfig({
4
- wpUrl: '__WP_URL__',
4
+ wpUrl: import.meta.env.WP_API_URL || '__WP_URL__',
5
5
  postsPerPage: __POSTS_PER_PAGE__,
6
6
  defaultLayout: '__DEFAULT_LAYOUT__',
7
7
  locale: '__LOCALE__',