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 +5 -3
- package/cli.ts +6 -4
- package/define-config.ts +1 -1
- package/package.json +1 -1
- package/templates/api-comments.ts.template +1 -1
- package/templates/blog-config.ts.template +1 -1
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.
|
|
68
|
+
locale: () => p.select({
|
|
69
69
|
message: "Default locale",
|
|
70
|
-
|
|
71
|
-
|
|
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.
|
|
98
|
+
p.select({
|
|
99
99
|
message: "Default locale",
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
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" | "
|
|
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