aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-08 18:10:46 -0400
committerXe Iaso <me@xeiaso.net>2025-04-08 18:20:11 -0400
commit782293bb04d1abc797e8667afa6e9666a1608b49 (patch)
tree6beb4f932b4418a5710e91eb95d58d4b86d996b1
parente9750514519f2522ef046c5b723f172044a30b98 (diff)
downloadxesite-782293bb04d1abc797e8667afa6e9666a1608b49.tar.xz
xesite-782293bb04d1abc797e8667afa6e9666a1608b49.zip
add npm run dev command
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--lume/src/_components/XeblogConv.tsx9
-rw-r--r--package.json5
2 files changed, 12 insertions, 2 deletions
diff --git a/lume/src/_components/XeblogConv.tsx b/lume/src/_components/XeblogConv.tsx
index aa7abd5..36df751 100644
--- a/lume/src/_components/XeblogConv.tsx
+++ b/lume/src/_components/XeblogConv.tsx
@@ -1,6 +1,7 @@
export interface XeblogConvProps {
name: string;
mood: string;
+ title?: string;
children: HTMLElement[];
standalone?: boolean;
aiModel?: string;
@@ -10,6 +11,7 @@ const ConvSnippet = ({
name,
mood,
children,
+ title,
standalone,
aiModel,
}: XeblogConvProps) => {
@@ -45,6 +47,13 @@ const ConvSnippet = ({
{/* Username */}
<span className="font-semibold text-sm block mb-1">
<a href={`/characters#${nameLower}`}>{name}</a>
+ {!!title && (
+ <>
+ {" ("}
+ {title}
+ {")"}
+ </>
+ )}
</span>
<span className="mx-auto" />
diff --git a/package.json b/package.json
index b999ef0..37e03d6 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,8 @@
"doc": "docs"
},
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "dev": "go run ./cmd/xesite --site-url https://preview.xeiaso.net --devel"
},
"repository": {
"type": "git",
@@ -22,4 +23,4 @@
"dependencies": {
"execa": "^8.0.1"
}
-}
+} \ No newline at end of file