Transform any Obsidian vault (or any folder of markdown files, really) into a backlink-powered static website using Lettersmith.
To start from a fresh folder of notes...
- Clone or download this repository.
- Follow the directions in the Lettersmith readme to install Lettersmith.
- Edit the notes with Obsidian or your favorite text editor.
- Optional: Edit
site_title
inbuild.py
to your site's title. - Run
python3 build.py
from the repository directory to build the site.
- Clone or download this repository
- Copy
build.py
,templates/
andstatic/
into your vault folder - Optionally copy
index.md
as a placeholder home page if you don't have one already. - Follow the directions in the Lettersmith readme to install Lettersmith if you haven't installed it already.
- Optional: Edit
site_title
inbuild.py
to your site's title. - Run
python3 build.py
from the vault directory to build the site.
The site is generated into public/
. Lettersmith doesn't include a local web server for previewing the site, so you'll need to serve the site separately to see it.
For start-to-finish instructions for deploying the site to Netlify, see Buster's helpful instructions here.
Lettersmith will process backlinks with double square bracket notation: [[link]]
just like Obsidian.
Place an underscore in front of the file name to mark a note as a draft. It won't be included in the generated site.
Create an index.md
file in the root of the Obsidian vault to serve as a home page. It will be given a separate template that displays the site title.
The included templates are very minimal and unstyled so you can modify them to your liking.
Currently the Lettersmith/Obsidian conversion doesn't support...
- Tags
- ... and most likely other Obsidian features