diff --git a/quartz/plugins/emitters/componentResources.ts b/quartz/plugins/emitters/componentResources.ts index c3a60b212..290cb6f2a 100644 --- a/quartz/plugins/emitters/componentResources.ts +++ b/quartz/plugins/emitters/componentResources.ts @@ -221,7 +221,10 @@ export const ComponentResources: QuartzEmitterPlugin = (opts?: Partial< // the static name of this file. const [filename, ext] = url.split("/").pop()!.split(".") - googleFontsStyleSheet = googleFontsStyleSheet.replace(url, `/fonts/${filename}.ttf`) + googleFontsStyleSheet = googleFontsStyleSheet.replace( + url, + `/static/fonts/${filename}.ttf`, + ) promises.push( fetch(url) @@ -234,7 +237,7 @@ export const ComponentResources: QuartzEmitterPlugin = (opts?: Partial< .then((buf) => write({ ctx, - slug: joinSegments("fonts", filename) as FullSlug, + slug: joinSegments("static", "fonts", filename) as FullSlug, ext: `.${ext}`, content: Buffer.from(buf), }),