Skip to content

Commit

Permalink
fix: content-disposition inline should apply to all resource types (c…
Browse files Browse the repository at this point in the history
…loses #728)
  • Loading branch information
jackyzha0 committed Jan 29, 2024
1 parent 85f05ea commit b014d06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quartz/cli/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export async function handleBuild(argv) {
directoryListing: false,
headers: [
{
source: "**/*.html",
source: "**/*.*",
headers: [{ key: "Content-Disposition", value: "inline" }],
},
],
Expand Down
2 changes: 1 addition & 1 deletion quartz/util/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(/\/$/, "")
}
Expand Down

0 comments on commit b014d06

Please sign in to comment.