diff --git a/content/images copy/dns records.png b/content/images copy/dns records.png deleted file mode 100644 index bf9f854bd..000000000 Binary files a/content/images copy/dns records.png and /dev/null differ diff --git a/content/images copy/quartz layout.png b/content/images copy/quartz layout.png deleted file mode 100644 index 03435f7d5..000000000 Binary files a/content/images copy/quartz layout.png and /dev/null differ diff --git a/content/images copy/quartz transform pipeline.png b/content/images copy/quartz transform pipeline.png deleted file mode 100644 index 657f0a3ab..000000000 Binary files a/content/images copy/quartz transform pipeline.png and /dev/null differ diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js index bc3da73f3..82c26bc7b 100644 --- a/quartz/cli/handlers.js +++ b/quartz/cli/handlers.js @@ -1,4 +1,4 @@ -import { promises, readFileSync } from "fs" +import { promises } from "fs" import path from "path" import esbuild from "esbuild" import chalk from "chalk" @@ -508,4 +508,4 @@ export async function handleSync(argv) { } console.log(chalk.green("Done!")) -} +} \ No newline at end of file diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index 80cd2b5d2..21dc13f95 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -3,7 +3,7 @@ import { QuartzComponentConstructor, QuartzComponentProps } from "./types" import readingTime from "reading-time" export default (() => { - function ContentMetadata({ cfg, fileData }: QuartzComponentProps) { + function ContentMetadata({ cfg, fileData, displayClass }: QuartzComponentProps) { const text = fileData.text if (text) { const segments: string[] = [] diff --git a/quartz/components/Explorer.tsx b/quartz/components/Explorer.tsx index de6b5e0ae..95eac4304 100644 --- a/quartz/components/Explorer.tsx +++ b/quartz/components/Explorer.tsx @@ -15,7 +15,12 @@ const defaultOptions = { sortFn: (a, b) => { // Sort order: folders first, then files. Sort folders and files alphabetically if ((!a.file && !b.file) || (a.file && b.file)) { - return a.displayName.localeCompare(b.displayName) + // numeric: true: Whether numeric collation should be used, such that "1" < "2" < "10" + // sensitivity: "base": Only strings that differ in base letters compare as unequal. Examples: a ≠ b, a = á, a = A + return a.displayName.localeCompare(b.displayName, undefined, { + numeric: true, + sensitivity: "base", + }) } if (a.file && !b.file) { return 1 @@ -81,7 +86,7 @@ export default ((userOpts?: Partial) => { function Explorer({ allFiles, displayClass, fileData }: QuartzComponentProps) { constructFileTree(allFiles) return ( -
+