These online notes are originally written in my Obsidian vault. They are styled using the static website generator quartz, which has a number of great plugins to get the most out of notes made in Obsidian specifically, such as graph view and wikilinks.
I followed the quartz documentation and Nicole van der Hoeven’s video to set up the website and publish to GitHub pages, but found there were two issues I needed to fix:
- I don’t want all my Obsidian notes online (no personal stuff) and I didn’t want to separate my single vault into a personal and public vault as a workaround.
- quartz doesn’t support dataview queries.
Both of these issues were solved by the Obsidian GitHub Publisher plugin.
removing personal notes
Obsidian GitHub Publisher takes the markdown notes in your vault and pushes them to a remote GitHub repository. I configured the plugin to populate the content/
folder of the same repository as the quartz site with a fixed folder file tree with the root folder content/
. This means all files end up in content/
root regardless of the Obsidian file structure.
I added the folders templates
, daily
, and other personal folders to the excluded folders zone. I also configured a share key, such that only notes with share: true
in the frontmatter were pushed to GitHub. quartz has its own method of hiding private files with draft: false
in the frontmatter. I didn’t want two new properties in the frontmatter, so I edited the draft.ts
file in quartz to filter on share
instead.
supporting dataview queries
Obsidian GitHub Publisher has the option to convert dataview to markdown before pushing to the remote.
other tweaks
- Removed any files relating to dark mode and simplified the colour palettes in
quartz.config.ts
. - Simplified the footer to link back to the main site only.
- Turned off the article read time.
- Customised the css to match my site.