obsidian-lettersmith
obsidian-lettersmith copied to clipboard
Transform any Obsidian vault (or any folder of markdown files) into a backlink-powered static website using Lettersmith.
Lettersmith Obsidian Scaffold
Transform any Obsidian vault (or any folder of markdown files, really) into a backlink-powered static website using Lettersmith.
Getting started
Option 1: Start from scratch
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.
Option 2: Add to an existing Obsidian vault
- 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.
Viewing 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.
Deploying
For start-to-finish instructions for deploying the site to Netlify, see Buster's helpful instructions here.
Features
Backlinks
Lettersmith will process backlinks with double square bracket notation: [[link]]
just like Obsidian.
Drafts
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.
Home page
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.
Minimal site design
The included templates are very minimal and unstyled so you can modify them to your liking.
Missing features...
Currently the Lettersmith/Obsidian conversion doesn't support...
- Tags
- ... and most likely other Obsidian features