From f1c9ca495e450ecb62dade70c4b60d86e106f79c Mon Sep 17 00:00:00 2001
From: vintro <77507980+vintrocode@users.noreply.github.com>
Date: Mon, 14 Aug 2023 00:19:50 +0000
Subject: [PATCH] docs: note about existing content at same path on different branches
---
quartz/plugins/emitters/contentIndex.ts | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/quartz/plugins/emitters/contentIndex.ts b/quartz/plugins/emitters/contentIndex.ts
index a94b552..f3a0281 100644
--- a/quartz/plugins/emitters/contentIndex.ts
+++ b/quartz/plugins/emitters/contentIndex.ts
@@ -88,19 +88,23 @@
}
if (opts?.enableSiteMap) {
- emitted.push(await emit({
- content: generateSiteMap(cfg, linkIndex),
- slug: "sitemap" as ServerSlug,
- ext: ".xml",
- }))
+ emitted.push(
+ await emit({
+ content: generateSiteMap(cfg, linkIndex),
+ slug: "sitemap" as ServerSlug,
+ ext: ".xml",
+ }),
+ )
}
if (opts?.enableRSS) {
- emitted.push(await emit({
- content: generateRSSFeed(cfg, linkIndex),
- slug: "index" as ServerSlug,
- ext: ".xml",
- }))
+ emitted.push(
+ await emit({
+ content: generateRSSFeed(cfg, linkIndex),
+ slug: "index" as ServerSlug,
+ ext: ".xml",
+ }),
+ )
}
const fp = path.join("static", "contentIndex") as ServerSlug
@@ -115,11 +119,13 @@
}),
)
- emitted.push(await emit({
- content: JSON.stringify(simplifiedIndex),
- slug: fp,
- ext: ".json",
- }))
+ emitted.push(
+ await emit({
+ content: JSON.stringify(simplifiedIndex),
+ slug: fp,
+ ext: ".json",
+ }),
+ )
return emitted
},
--
Gitblit v1.10.0