astro-blog-kit 0.3.8 → 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
  }
@@ -102,7 +102,7 @@ const blogBase = getBlogBase(locale, base);
102
102
 
103
103
  <style>
104
104
  .blog {
105
- background-color: var(--bk-white);
105
+ background-color: var(--bk-background);
106
106
  padding: 6rem 1rem;
107
107
  min-height: 100vh;
108
108
  }
@@ -132,14 +132,14 @@ const blogBase = getBlogBase(locale, base);
132
132
  .blog__title {
133
133
  font-size: clamp(3rem, 8vw, 5rem);
134
134
  font-weight: 700;
135
- color: var(--bk-black);
135
+ color: var(--bk-text);
136
136
  line-height: 1;
137
137
  margin-bottom: 1rem;
138
138
  }
139
139
 
140
140
  .blog__title-highlight {
141
- background-color: var(--bk-black);
142
- color: var(--bk-yellow);
141
+ background-color: var(--bk-text);
142
+ color: var(--bk-accent);
143
143
  padding: 0 0.3rem;
144
144
  }
145
145
 
@@ -82,7 +82,7 @@ const pages = Array.from({ length: totalPages }, (_, i) => i + 1);
82
82
  place-items: center;
83
83
  font-weight: 700;
84
84
  font-size: 0.9rem;
85
- color: var(--bk-muted);
85
+ color: var(--bk-text);
86
86
  border: 2px solid var(--bk-border);
87
87
  text-decoration: none;
88
88
  transition: var(--bk-transition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-blog-kit",
3
- "version": "0.3.8",
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
  ---