Quartz is a set of tools that helps you publish your digital garden and notes as a website for free.
This template repository
- wraps Quartz by Jacky Zhao into a git submodule to integrate with dependabot updates.
- builds the website from the notes and publishes to GitHub pages by GitHub actions.
- is Obsidian-friendly (thanks to Quartz). Open the
contentfolder as an Obsidian vault.
Click the big green Use this template button to create a repository. Clone the created repository using GitHub Desktop or the git clone command:
git clone --recursive https://github.com/$USER/$REPO.gitOpen the content folder as an Obsidian vault, edit/add notes and use GitHub Desktop or git push command to commit and push the changes to GitHub. GitHub actions will build and publish the website automatically.
Important
You need to enable GitHub pages in your repository settings -> pages -> selecting GitHub actions as the source.
(See Building your Quartz for details)
cd quartz
npm i
npx quartz build -d ../content --serveYou can open the content folder in Obsidian (or other editors) to edit/add your notes. After that, use GitHub Desktop or git push command to commit and push the changes to GitHub. GitHub actions will build and publish the website automatically.
Important
You need to enable GitHub pages in your repository settings -> pages -> selecting GitHub actions as the source.
Cloudflare pages build configurations:
- Framework preset:
None - Build command :
cp quartz.config.ts quartz.layout.ts quartz/ && cd quartz && npm ci && npx quartz build --directory ../content - Build output directory:
quartz/public