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-
|
|
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-
|
|
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-
|
|
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-
|
|
142
|
-
color: var(--bk-
|
|
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-
|
|
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,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
|
|
16
|
+
const t = {
|
|
16
17
|
blog: {
|
|
17
|
-
tagline:
|
|
18
|
-
title_line1:
|
|
19
|
-
title_line2:
|
|
20
|
-
description:
|
|
21
|
-
btncta:
|
|
22
|
-
btn_prev:
|
|
23
|
-
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
|
|
19
|
+
const t = {
|
|
19
20
|
blog: {
|
|
20
|
-
tagline:
|
|
21
|
-
title_line1:
|
|
22
|
-
title_line2:
|
|
23
|
-
description:
|
|
24
|
-
btncta:
|
|
25
|
-
btn_prev:
|
|
26
|
-
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
|
---
|