Skip to content

Commit 25cc51e

Browse files
committed
Fix frontmatter tags template
1 parent cc193f9 commit 25cc51e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

app/components/Contribute.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ function buildGithubNewUrl(dirPath: string, filename: string, title: string) {
3131
const file = filename.endsWith(".mdx") ? filename : `${filename}.mdx`;
3232
const fullDir = `${DOCS_BASE}/${dirPath}`.replace(/\/+/g, "/");
3333
const frontMatter = `---
34-
title: ${title || "New Article"}
35-
description:
36-
date: ${new Date().toISOString().slice(0, 10)}
37-
tags: []
34+
title: "${title || "New Article"}"
35+
description: ""
36+
date: "${new Date().toISOString().slice(0, 10)}"
37+
tags:
38+
- tag-one
3839
---
3940
4041
# ${title || "New Article"}

0 commit comments

Comments
 (0)