@riebeckite/plugin-backlinks 0.0.18 → 0.0.20

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 CHANGED
@@ -56,7 +56,7 @@ return (
56
56
 
57
57
  ## Component
58
58
 
59
- `Backlinks({ backlinks })` renders a `<footer class="article-backlinks rr-backlinks">` with
59
+ `Backlinks({ backlinks })` renders a `<footer class="rr-backlinks">` with
60
60
  an eyebrow label and a list of links to each backlink's resolved `permalink`.
61
61
 
62
62
  ## Exports
@@ -69,6 +69,6 @@ an eyebrow label and a list of links to each backlink's resolved `permalink`.
69
69
 
70
70
  ## See also
71
71
 
72
- - [Plugin guide](../../../docs/docs/reference/plugin-api.en.md)
72
+ - [Plugin guide](../../../docs/docs/reference/plugin-api.md)
73
73
  - [`@riebeckite/plugin-local-graph`](../local-graph/README.md)
74
74
  - [`@riebeckite/plugin-garden-explorer`](../garden-explorer/README.md)
package/README_ja.md CHANGED
@@ -44,6 +44,6 @@ return <Article footerContent={<Backlinks backlinks={items} />} />;
44
44
 
45
45
  ## 関連資料
46
46
 
47
- - [プラグインシステム](../../../docs/docs/reference/plugin-api.md)
47
+ - [プラグインシステム](../../../docs/docs/reference/plugin-api.ja.md)
48
48
  - [`@riebeckite/plugin-local-graph`](../local-graph/README_ja.md)
49
49
  - [`@riebeckite/plugin-garden-explorer`](../garden-explorer/README_ja.md)
@@ -2,9 +2,9 @@
2
2
  import { jsx, jsxs } from "hono/jsx/jsx-runtime";
3
3
  function Backlinks(props) {
4
4
  if (props.backlinks.length === 0) return null;
5
- return /* @__PURE__ */ jsxs("footer", { class: "article-backlinks rr-backlinks max-w-4xl mx-auto px-4", children: [
6
- /* @__PURE__ */ jsx("p", { class: "article-backlinks__eyebrow", children: "Backlinks" }),
7
- /* @__PURE__ */ jsx("ul", { class: "article-backlinks__list", children: props.backlinks.map((backlink) => /* @__PURE__ */ jsx("li", { class: "article-backlinks__item", children: /* @__PURE__ */ jsx("a", { class: "article-backlinks__link", href: backlink.permalink, children: backlink.title }) }, backlink.slug)) })
5
+ return /* @__PURE__ */ jsxs("footer", { class: "rr-backlinks max-w-4xl mx-auto px-4", children: [
6
+ /* @__PURE__ */ jsx("p", { class: "rr-backlinks__eyebrow", children: "Backlinks" }),
7
+ /* @__PURE__ */ jsx("ul", { class: "rr-backlinks__list", children: props.backlinks.map((backlink) => /* @__PURE__ */ jsx("li", { class: "rr-backlinks__item", children: /* @__PURE__ */ jsx("a", { class: "rr-backlinks__link", href: backlink.permalink, children: backlink.title }) }, backlink.slug)) })
8
8
  ] });
9
9
  }
10
10
  export {
package/dist/index.js CHANGED
@@ -6,9 +6,9 @@ import { renderToString } from "hono/jsx/dom/server";
6
6
  import { jsx, jsxs } from "hono/jsx/jsx-runtime";
7
7
  function Backlinks(props) {
8
8
  if (props.backlinks.length === 0) return null;
9
- return /* @__PURE__ */ jsxs("footer", { class: "article-backlinks rr-backlinks max-w-4xl mx-auto px-4", children: [
10
- /* @__PURE__ */ jsx("p", { class: "article-backlinks__eyebrow", children: "Backlinks" }),
11
- /* @__PURE__ */ jsx("ul", { class: "article-backlinks__list", children: props.backlinks.map((backlink) => /* @__PURE__ */ jsx("li", { class: "article-backlinks__item", children: /* @__PURE__ */ jsx("a", { class: "article-backlinks__link", href: backlink.permalink, children: backlink.title }) }, backlink.slug)) })
9
+ return /* @__PURE__ */ jsxs("footer", { class: "rr-backlinks max-w-4xl mx-auto px-4", children: [
10
+ /* @__PURE__ */ jsx("p", { class: "rr-backlinks__eyebrow", children: "Backlinks" }),
11
+ /* @__PURE__ */ jsx("ul", { class: "rr-backlinks__list", children: props.backlinks.map((backlink) => /* @__PURE__ */ jsx("li", { class: "rr-backlinks__item", children: /* @__PURE__ */ jsx("a", { class: "rr-backlinks__link", href: backlink.permalink, children: backlink.title }) }, backlink.slug)) })
12
12
  ] });
13
13
  }
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-backlinks",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "hono": "^4.12.25",
25
- "@riebeckite/core": "0.0.18"
25
+ "@riebeckite/core": "0.0.20"
26
26
  },
27
27
  "devDependencies": {
28
28
  "tsx": "^4.22.4",
29
- "@riebeckite/test": "0.0.18"
29
+ "@riebeckite/test": "0.0.20"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
package/style.css CHANGED
@@ -1,10 +1,10 @@
1
- .article-backlinks {
1
+ .rr-backlinks {
2
2
  margin-block-start: var(--rb-space-6, 3rem);
3
3
  padding-top: 1.5rem;
4
4
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
5
5
  }
6
6
 
7
- .article-backlinks__eyebrow {
7
+ .rr-backlinks__eyebrow {
8
8
  margin: 0 0 0.25rem;
9
9
  font-size: 0.75rem;
10
10
  font-weight: 700;
@@ -13,13 +13,13 @@
13
13
  opacity: 0.62;
14
14
  }
15
15
 
16
- .article-backlinks__title {
16
+ .rr-backlinks__title {
17
17
  margin: 0;
18
18
  font-size: 1.15rem;
19
19
  line-height: 1.4;
20
20
  }
21
21
 
22
- .article-backlinks__list {
22
+ .rr-backlinks__list {
23
23
  display: grid;
24
24
  gap: 0.5rem;
25
25
  margin: 1rem 0 0;
@@ -27,11 +27,11 @@
27
27
  list-style: none;
28
28
  }
29
29
 
30
- .article-backlinks__item {
30
+ .rr-backlinks__item {
31
31
  margin: 0;
32
32
  }
33
33
 
34
- .article-backlinks__link {
34
+ .rr-backlinks__link {
35
35
  display: block;
36
36
  padding: 0.75rem 0.875rem;
37
37
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
@@ -39,7 +39,7 @@
39
39
  text-decoration: none;
40
40
  }
41
41
 
42
- .article-backlinks__link:hover {
42
+ .rr-backlinks__link:hover {
43
43
  border-color: color-mix(in srgb, currentColor 28%, transparent);
44
44
  background: color-mix(in srgb, currentColor 4%, transparent);
45
45
  }