Skip to content

Commit

Permalink
Quotes around generated pages
Browse files Browse the repository at this point in the history
  • Loading branch information
phazonoverload committed Sep 10, 2024
1 parent ea70907 commit 87198bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineNuxtConfig({
if (!category.pages) continue;
for (const page of category.pages) {
const pagePath = resolve(remotePath, `${area.sort}.${area.slug}`, `${category.sort}.${category.slug}`, `${page.sort}.${page.slug}` + '.md');
const pageContent = `---\ntitle: ${page.title}\n---\n${page.content}`;
const pageContent = `---\ntitle: "${page.title}"\n---\n${page.content}`;
await fs.mkdir(resolve(remotePath, `${area.sort}.${area.slug}`, `${category.sort}.${category.slug}`), { recursive: true });
await fs.writeFile(pagePath, pageContent);
}
Expand Down

0 comments on commit 87198bf

Please sign in to comment.