astro-blog-kit 0.2.6 → 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/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.6",
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__',