summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--vhosts/blog/nuldoc-src/commands/new.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/vhosts/blog/nuldoc-src/commands/new.ts b/vhosts/blog/nuldoc-src/commands/new.ts
index 19002531..13735f0b 100644
--- a/vhosts/blog/nuldoc-src/commands/new.ts
+++ b/vhosts/blog/nuldoc-src/commands/new.ts
@@ -58,9 +58,11 @@ function getDirPath(type: "post" | "slide"): string {
}
function getTemplate(type: "post" | "slide", date: string): string {
+ const uuid = crypto.randomUUID();
if (type === "post") {
return `---
[article]
+uuid = "${uuid}"
title = "TODO"
description = "TODO"
tags = [
@@ -82,6 +84,7 @@ remark = "公開"
`;
} else {
return `[slide]
+uuid = "${uuid}"
title = "TODO"
event = "TODO"
talkType = "TODO"