diff --git a/quartz/quartz/components/Footer.tsx b/quartz/quartz/components/Footer.tsx index 1adeb12..fca8395 100644 --- a/quartz/quartz/components/Footer.tsx +++ b/quartz/quartz/components/Footer.tsx @@ -36,7 +36,7 @@ export default ((opts?: Options) => {
{ />
{ />
{ const path = url.pathname as FullSlug const baseDir = fileData.slug === "404" ? path : pathToRoot(fileData.slug!) - const iconPath = joinSegments(baseDir, "static/favicon.svg") + const iconPath = joinSegments(baseDir, "/static/favicon.svg") const ogImagePath = `https://${cfg.baseUrl}/static/og-image.png` return ( diff --git a/quartz/quartz/components/PageTitle.tsx b/quartz/quartz/components/PageTitle.tsx index b485076..7399e3e 100644 --- a/quartz/quartz/components/PageTitle.tsx +++ b/quartz/quartz/components/PageTitle.tsx @@ -9,7 +9,7 @@ const PageTitle: QuartzComponent = ({ fileData, cfg, displayClass }: QuartzCompo return ( <> - + {/**

diff --git a/quartz/quartz/components/renderPage.tsx b/quartz/quartz/components/renderPage.tsx index 251a53f..782a4a1 100644 --- a/quartz/quartz/components/renderPage.tsx +++ b/quartz/quartz/components/renderPage.tsx @@ -24,7 +24,7 @@ export function pageResources( baseDir: FullSlug | RelativeURL, staticResources: StaticResources, ): StaticResources { - const contentIndexPath = joinSegments(baseDir, "static/contentIndex.json") + const contentIndexPath = joinSegments(baseDir, "/static/contentIndex.json") const contentIndexScript = `const fetchData = fetch("${contentIndexPath}").then(data => data.json())` return { diff --git a/quartz/quartz/plugins/emitters/contentIndex.ts b/quartz/quartz/plugins/emitters/contentIndex.ts index c0fef86..9c9f4ad 100644 --- a/quartz/quartz/plugins/emitters/contentIndex.ts +++ b/quartz/quartz/plugins/emitters/contentIndex.ts @@ -101,7 +101,7 @@ export const ContentIndex: QuartzEmitterPlugin> = (opts) => { graph.addEdge( sourcePath, - joinSegments(ctx.argv.output, "static/contentIndex.json") as FilePath, + joinSegments(ctx.argv.output, "/static/contentIndex.json") as FilePath, ) if (opts?.enableSiteMap) { graph.addEdge(sourcePath, joinSegments(ctx.argv.output, "sitemap.xml") as FilePath)