Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions app/components/Contribute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ function buildGithubNewUrl(dirPath: string, filename: string, title: string) {
const file = filename.endsWith(".mdx") ? filename : `${filename}.mdx`;
const fullDir = `${DOCS_BASE}/${dirPath}`.replace(/\/+/g, "/");
const frontMatter = `---
title: ${title || "New Article"}
description:
date: ${new Date().toISOString().slice(0, 10)}
tags: []
title: "${title || "New Article"}"
description: ""
date: "${new Date().toISOString().slice(0, 10)}"
tags:
- tag-one
---

# ${title || "New Article"}
Expand Down