astro-blog-kit 0.3.9 → 0.4.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.
@@ -83,7 +83,7 @@ const isList = variant === "list";
83
83
  <style>
84
84
  .blog-card {
85
85
  border: 2px solid var(--bk-gray-200);
86
- background-color: var(--bk-white);
86
+ background-color: var(--bk-surface);
87
87
  overflow: hidden;
88
88
  transition: transform 0.3s ease, border-color 0.3s ease;
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-blog-kit",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
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,6 +1,7 @@
1
1
  ---
2
2
  import { BlogList } from "astro-blog-kit/components";
3
3
  import { createWPClient, getStaticPathsForPages } from "astro-blog-kit/utils";
4
+ import { resolveHero, resolveUI } from 'astro-blog-kit';
4
5
  import config from "../../../../blog.config";
5
6
  __LAYOUT_IMPORT_PAGE__
6
7
 
@@ -12,15 +13,15 @@ export async function getStaticPaths() {
12
13
 
13
14
  const { posts, currentPage, totalPages } = Astro.props;
14
15
 
15
- const bt = {
16
+ const t = {
16
17
  blog: {
17
- tagline: "__T_TAGLINE__",
18
- title_line1: "__T_TITLE_LINE1__",
19
- title_line2: "__T_TITLE_LINE2__",
20
- description: "__T_DESCRIPTION__",
21
- btncta: "__T_BTNCTA__",
22
- btn_prev: "__T_BTN_PREV__",
23
- btn_next: "__T_BTN_NEXT__",
18
+ tagline: hero.tagline,
19
+ title_line1: hero.titleLine1,
20
+ title_line2: hero.titleLine2,
21
+ description: hero.description,
22
+ btncta: ui.readMoreLabel,
23
+ btn_prev: ui.btnPrev,
24
+ btn_next: ui.btnNext,
24
25
  },
25
26
  };
26
27
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  import { BlogPost, Comments, CommentForm } from "astro-blog-kit/components";
3
3
  import { createWPClient, getStaticPathsForPosts } from "astro-blog-kit/utils";
4
+ import { resolveHero, resolveUI } from 'astro-blog-kit';
4
5
  import config from "../../../blog.config";
5
6
  __LAYOUT_IMPORT_SLUG__
6
7
 
@@ -15,15 +16,15 @@ const { post } = Astro.props;
15
16
  const wp = createWPClient(config.wpUrl);
16
17
  const comments = post.id ? await wp.getComments(post.id) : [];
17
18
 
18
- const bt = {
19
+ const t = {
19
20
  blog: {
20
- tagline: "__T_TAGLINE__",
21
- title_line1: "__T_TITLE_LINE1__",
22
- title_line2: "__T_TITLE_LINE2__",
23
- description: "__T_DESCRIPTION__",
24
- btncta: "__T_BTNCTA__",
25
- btn_prev: "__T_BTN_PREV__",
26
- btn_next: "__T_BTN_NEXT__",
21
+ tagline: hero.tagline,
22
+ title_line1: hero.titleLine1,
23
+ title_line2: hero.titleLine2,
24
+ description: hero.description,
25
+ btncta: ui.readMoreLabel,
26
+ btn_prev: ui.btnPrev,
27
+ btn_next: ui.btnNext,
27
28
  },
28
29
  };
29
30
  ---