An open API service indexing awesome lists of open source software.

https://github.com/kmcgillivray/obsidian-lettersmith

Transform any Obsidian vault (or any folder of markdown files) into a backlink-powered static website using Lettersmith.
https://github.com/kmcgillivray/obsidian-lettersmith

static-site-generator

Last synced: 5 months ago
JSON representation

Transform any Obsidian vault (or any folder of markdown files) into a backlink-powered static website using Lettersmith.

Awesome Lists containing this project

README

        

# Lettersmith Obsidian Scaffold

Transform any [Obsidian](https://obsidian.md/) vault (or any folder of markdown files, really) into a backlink-powered static website using [Lettersmith](https://github.com/gordonbrander/lettersmith_py).

## Getting started

### Option 1: Start from scratch

To start from a fresh folder of notes...

1. Clone or download this repository.
2. Follow the directions in the [Lettersmith readme](https://github.com/gordonbrander/lettersmith_py/blob/master/README.md) to install Lettersmith.
3. Edit the notes with Obsidian or your favorite text editor.
4. Optional: Edit `site_title` in `build.py` to your site's title.
5. Run `python3 build.py` from the repository directory to build the site.

### Option 2: Add to an existing Obsidian vault

1. Clone or download this repository
2. Copy `build.py`, `templates/` and `static/` into your vault folder
3. Optionally copy `index.md` as a placeholder home page if you don't have one already.
4. Follow the directions in the [Lettersmith readme](https://github.com/gordonbrander/lettersmith_py/blob/master/README.md) to install Lettersmith if you haven't installed it already.
4. Optional: Edit `site_title` in `build.py` to your site's title.
5. 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](https://github.com/busterbenson/obsidian/blob/master/installation%20instructions.md).

## 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