diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js index b8b97b721..12e7e8ec9 100644 --- a/quartz/cli/handlers.js +++ b/quartz/cli/handlers.js @@ -347,7 +347,7 @@ export async function handleBuild(argv) { directoryListing: false, headers: [ { - source: "**/*.html", + source: "**/*.*", headers: [{ key: "Content-Disposition", value: "inline" }], }, ], diff --git a/quartz/util/path.ts b/quartz/util/path.ts index 95acf119d..07f25a59d 100644 --- a/quartz/util/path.ts +++ b/quartz/util/path.ts @@ -52,7 +52,7 @@ function sluggify(s: string): string { .split("/") .map((segment) => segment.replace(/\s/g, "-").replace(/%/g, "-percent").replace(/\?/g, "-q").replace(/#/g, ""), - ) // slugify all segments + ) .join("/") // always use / as sep .replace(/\/$/, "") }