Skip to content

Commit

Permalink
docs: make incompability of trailing slashes clear
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Aug 23, 2023
1 parent eed4472 commit 960c181
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ To add a custom domain, check out [Cloudflare's documentation](https://developer

Like Quartz 3, you can deploy the site generated by Quartz 4 via GitHub Pages.

> [!warning]
> Quartz generates files in the format of `file.html` instead of `file/index.html` which means the trailing slashes for _non-folder paths_ are dropped. As GitHub pages does not do this redirect, this may cause existing links to your site that use trailing slashes to break. If not breaking existing links is important to you, consider using [[#Cloudflare Pages]].
In your local Quartz, create a new file `quartz/.github/workflows/deploy.yml`.

```yaml title="quartz/.github/workflows/deploy.yml"
Expand Down

0 comments on commit 960c181

Please sign in to comment.