Jacky Zhao
2024-01-29 b014d060f3f16b2460da08cdf88bef25d05d5d3b
fix: content-disposition inline should apply to all resource types (closes #728)
2 files modified
4 ■■■■ changed files
quartz/cli/handlers.js 2 ●●● patch | view | raw | blame | history
quartz/util/path.ts 2 ●●● patch | view | raw | blame | history
quartz/cli/handlers.js
@@ -347,7 +347,7 @@
          directoryListing: false,
          headers: [
            {
              source: "**/*.html",
              source: "**/*.*",
              headers: [{ key: "Content-Disposition", value: "inline" }],
            },
          ],
quartz/util/path.ts
@@ -52,7 +52,7 @@
    .split("/")
    .map((segment) =>
      segment.replace(/\s/g, "-").replace(/%/g, "-percent").replace(/\?/g, "-q").replace(/#/g, ""),
    ) // slugify all segments
    )
    .join("/") // always use / as sep
    .replace(/\/$/, "")
}