@riebeckite/plugin-recent-posts 0.0.17 → 0.0.19
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/README.md +3 -3
- package/README_ja.md +1 -1
- package/dist/components/recent-posts.js +1 -4
- package/dist/index.js +1 -4
- package/package.json +2 -2
- package/style.css +0 -11
package/README.md
CHANGED
|
@@ -56,8 +56,8 @@ return <Article afterContent={<RecentPosts posts={recentPosts} />} />;
|
|
|
56
56
|
## Component
|
|
57
57
|
|
|
58
58
|
`RecentPosts({ posts })` renders a
|
|
59
|
-
`<section class="recent-posts rr-recent-posts">` with
|
|
60
|
-
|
|
59
|
+
`<section class="recent-posts rr-recent-posts">` with a heading and an ordered
|
|
60
|
+
list. Each item links to the post and shows its date formatted for the
|
|
61
61
|
`en-US` locale. The `rr-recent-posts` root hook is the stable class themes may
|
|
62
62
|
target.
|
|
63
63
|
|
|
@@ -77,4 +77,4 @@ target.
|
|
|
77
77
|
|
|
78
78
|
## See also
|
|
79
79
|
|
|
80
|
-
- [Plugin guide](../../../docs/
|
|
80
|
+
- [Plugin guide](../../../docs/docs/reference/plugin-api.en.md)
|
package/README_ja.md
CHANGED
|
@@ -8,10 +8,7 @@ function RecentPosts(props) {
|
|
|
8
8
|
class: "recent-posts rr-recent-posts",
|
|
9
9
|
"aria-labelledby": "recent-posts-title",
|
|
10
10
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */ jsx("p", { class: "recent-posts__eyebrow", children: "RECENT POSTS" }),
|
|
13
|
-
/* @__PURE__ */ jsx("h2", { class: "recent-posts__title", id: "recent-posts-title", children: "Recent Posts" })
|
|
14
|
-
] }),
|
|
11
|
+
/* @__PURE__ */ jsx("div", { class: "recent-posts__header", children: /* @__PURE__ */ jsx("h2", { class: "recent-posts__title", id: "recent-posts-title", children: "Recent Posts" }) }),
|
|
15
12
|
/* @__PURE__ */ jsx("ol", { class: "recent-posts__list", children: props.posts.map((post) => {
|
|
16
13
|
const formattedDate = formatPostedDate(post.postedAt);
|
|
17
14
|
return /* @__PURE__ */ jsx("li", { class: "recent-posts__item", children: /* @__PURE__ */ jsxs("a", { class: "recent-posts__link", href: post.permalink, children: [
|
package/dist/index.js
CHANGED
|
@@ -11,10 +11,7 @@ function RecentPosts(props) {
|
|
|
11
11
|
class: "recent-posts rr-recent-posts",
|
|
12
12
|
"aria-labelledby": "recent-posts-title",
|
|
13
13
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */ jsx("p", { class: "recent-posts__eyebrow", children: "RECENT POSTS" }),
|
|
16
|
-
/* @__PURE__ */ jsx("h2", { class: "recent-posts__title", id: "recent-posts-title", children: "Recent Posts" })
|
|
17
|
-
] }),
|
|
14
|
+
/* @__PURE__ */ jsx("div", { class: "recent-posts__header", children: /* @__PURE__ */ jsx("h2", { class: "recent-posts__title", id: "recent-posts-title", children: "Recent Posts" }) }),
|
|
18
15
|
/* @__PURE__ */ jsx("ol", { class: "recent-posts__list", children: props.posts.map((post) => {
|
|
19
16
|
const formattedDate = formatPostedDate(post.postedAt);
|
|
20
17
|
return /* @__PURE__ */ jsx("li", { class: "recent-posts__item", children: /* @__PURE__ */ jsxs("a", { class: "recent-posts__link", href: post.permalink, children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-recent-posts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"hono": "^4.12.25",
|
|
25
|
-
"@riebeckite/core": "0.0.
|
|
25
|
+
"@riebeckite/core": "0.0.19"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"tsx": "^4.22.4"
|
package/style.css
CHANGED
|
@@ -6,19 +6,9 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.recent-posts__header {
|
|
9
|
-
display: grid;
|
|
10
|
-
gap: 0.25rem;
|
|
11
9
|
margin-bottom: 1.25rem;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
.recent-posts__eyebrow {
|
|
15
|
-
margin: 0;
|
|
16
|
-
font-size: 0.75rem;
|
|
17
|
-
font-weight: 700;
|
|
18
|
-
letter-spacing: 0.12em;
|
|
19
|
-
color: color-mix(in srgb, currentColor 54%, transparent);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
12
|
.recent-posts__title {
|
|
23
13
|
margin: 0;
|
|
24
14
|
font-size: clamp(1.5rem, 4vw, 2rem);
|
|
@@ -30,7 +20,6 @@
|
|
|
30
20
|
display: grid;
|
|
31
21
|
margin: 0;
|
|
32
22
|
padding: 0;
|
|
33
|
-
border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
|
|
34
23
|
list-style: none;
|
|
35
24
|
}
|
|
36
25
|
|