From 0e1691945544474b120b47dcde66929519af47e1 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Fri, 27 Nov 2026 00:20:07 +0100 Subject: [PATCH] docs(slugs): old addresses redirect when stripDiacritics is on; fold the redirect changeset into the option's --- .changeset/strip-diacritics-redirects.md | 5 ----- .changeset/strip-diacritics-slugs.md | 2 +- docs/configuration.md | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 .changeset/strip-diacritics-redirects.md diff --git a/.changeset/strip-diacritics-redirects.md b/.changeset/strip-diacritics-redirects.md deleted file mode 100644 index 038cc9a30..000000000 --- a/.changeset/strip-diacritics-redirects.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@jackyzha0/quartz": minor ---- - -With `slugs.stripDiacritics`, the old address of every page, folder and alias whose name has diacritics (`české/žluťoučký-kůň/poznámka`) redirects to the new one (`ceske/zlutoucky-kun/poznamka`), so turning the option on doesn't break links and bookmarks to the site. diff --git a/.changeset/strip-diacritics-slugs.md b/.changeset/strip-diacritics-slugs.md index 27c67bde5..e0e0325f2 100644 --- a/.changeset/strip-diacritics-slugs.md +++ b/.changeset/strip-diacritics-slugs.md @@ -2,4 +2,4 @@ "@jackyzha0/quartz": minor --- -New opt-in `configuration.slugs.stripDiacritics`: strips accents and other diacritics from generated slugs (`české/čeština.md` → `/ceske/cestina`). Links, embeds, aliases, permalinks, tags and folder pages resolve to the stripped addresses; heading anchors keep their diacritics. Turning it on changes the URLs of existing pages; add the old addresses as `aliases` where links to them must keep working. Only Latin letters change: they lose their accents and fold to ASCII (`ł` → `l`, `ø` → `o`, `ß` → `ss`, `æ` → `ae`); other scripts (Korean, Japanese, Chinese, Greek, Cyrillic, Indic, Hebrew, Arabic, …) are left as written. Plugins that make slugs follow the option when they bundle `@quartz-community/utils` 1.3 or later, as the plugins updated in this release do (1.3.1 for the ASCII folding). +New opt-in `configuration.slugs.stripDiacritics`: strips accents and other diacritics from generated slugs (`české/čeština.md` → `/ceske/cestina`). Links, embeds, aliases, permalinks, tags and folder pages resolve to the stripped addresses; heading anchors keep their diacritics. Turning it on changes the URLs of existing pages; their old addresses redirect to the new ones. Only Latin letters change: they lose their accents and fold to ASCII (`ł` → `l`, `ø` → `o`, `ß` → `ss`, `æ` → `ae`); other scripts (Korean, Japanese, Chinese, Greek, Cyrillic, Indic, Hebrew, Arabic, …) are left as written. Plugins that make slugs follow the option when they bundle `@quartz-community/utils` 1.3 or later, as the plugins updated in this release do (1.3.1 for the ASCII folding). diff --git a/docs/configuration.md b/docs/configuration.md index f44c48432..042b193c9 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -91,7 +91,7 @@ This part of the configuration concerns anything that can affect the whole site. - `stripDiacritics`: `true` strips accents and other diacritics from page, folder and file URLs, e.g. `české/čeština.md` is published at `/ceske/cestina` instead of `/české/čeština` (which browsers show as `%C4%8Desk%C3%A9/...` when copied). Off by default. - Links keep working as written in your notes: `[[čeština]]`, `[[české/čeština#Nadpis]]` and embeds like `![[obrázek.png]]` resolve to the stripped addresses. Aliases and `permalink`s are stripped the same way. Heading anchors (`#Nadpis`) keep their diacritics. Tag pages and the pages plugins generate from files (canvas, bases, …) are stripped too with `@quartz-community/utils` 1.3 or newer; with older versions they keep their diacritics. - Only Latin letters change: they lose their accents (`á č é ů …`), and Latin letters without a decomposition fold to ASCII (`ł` → `l`, `ø` → `o`, `ß` → `ss`, `æ` → `ae`). Other scripts (Chinese, Japanese, Korean, Greek, Cyrillic, Arabic, Hebrew, Devanagari, …) are left as written, marks included. - - Turning it on changes the URLs of existing pages; links shared elsewhere to the old addresses will 404 unless you add the old addresses as `aliases`. + - Turning it on changes the URLs of existing pages. Quartz writes a redirect from each page's, folder's and alias's old address (the slug with its diacritics) to the new one, so links shared elsewhere keep working. Old `permalink` addresses are not redirected; add them as `aliases` if they need to keep working. - `ignorePatterns`: a list of [glob]() patterns that Quartz should ignore and not search through when looking for files inside the `content` folder. See [[private pages]] for more details. - `theme`: configure how the site looks. - `fontOrigin`: where to load fonts from.