Skip to content

Commit 782293b

Browse files
committed
add npm run dev command
Signed-off-by: Xe Iaso <[email protected]>
1 parent e975051 commit 782293b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

lume/src/_components/XeblogConv.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export interface XeblogConvProps {
22
name: string;
33
mood: string;
4+
title?: string;
45
children: HTMLElement[];
56
standalone?: boolean;
67
aiModel?: string;
@@ -10,6 +11,7 @@ const ConvSnippet = ({
1011
name,
1112
mood,
1213
children,
14+
title,
1315
standalone,
1416
aiModel,
1517
}: XeblogConvProps) => {
@@ -45,6 +47,13 @@ const ConvSnippet = ({
4547
{/* Username */}
4648
<span className="font-semibold text-sm block mb-1">
4749
<a href={`/characters#${nameLower}`}>{name}</a>
50+
{!!title && (
51+
<>
52+
{" ("}
53+
{title}
54+
{")"}
55+
</>
56+
)}
4857
</span>
4958
<span className="mx-auto" />
5059

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"doc": "docs"
88
},
99
"scripts": {
10-
"test": "echo \"Error: no test specified\" && exit 1"
10+
"test": "echo \"Error: no test specified\" && exit 1",
11+
"dev": "go run ./cmd/xesite --site-url https://preview.xeiaso.net --devel"
1112
},
1213
"repository": {
1314
"type": "git",
@@ -22,4 +23,4 @@
2223
"dependencies": {
2324
"execa": "^8.0.1"
2425
}
25-
}
26+
}

0 commit comments

Comments
 (0)