The simplest static site generator for Obsidian notes written in Go.
go run ./cmdInstall air
go install github.com/air-verse/air@latestAnd run it at the root directory.
air--serve serve the generated website after building.
--port port to serve the website on.
--vhealth prints out health diagnostics on your vault, and saves it to vault-diagnostics.json in the output directory.
--clear removes the public directory before generating the site.
--cpuprofile <filename> to generate CPU profiler file.
--memprofile <filename> to generate memory profiler file.
.config.toml is the config file.
input_directory = "posts"
output_directory = "public"
site_title = "Nver Khachoyan's Blog"
site_subtitle = "My Personal Blog - Built with Go and Obsidian Notes"
notes_per_page = 5
base_url = "/"
env = "production"
[theme]
syntax_highlighter_dark = "monokai"
syntax_highlighter_light = "github"input_directory is the obsidian vault directory.
- Backlinks
- Backlink embeds
- Obsidian style images
- Frontmatter parsing (yaml)
- Folders and Subfolders
- Paginated content (set # pages in config)
Supported frontmatter fields are title, date, author, and updatedAt.
You can demo it at blog.nverk.me.