Skip to content

nverkhachoyan/gobsidian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gobsidian

The simplest static site generator for Obsidian notes written in Go.

Run with this command

go run ./cmd

For Live Reload

Install air

go install github.com/air-verse/air@latest

And run it at the root directory.

air

Flags

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

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

Current state

  1. Backlinks
  2. Backlink embeds
  3. Obsidian style images
  4. Frontmatter parsing (yaml)
  5. Folders and Subfolders
  6. Paginated content (set # pages in config)

Frontmatter

Supported frontmatter fields are title, date, author, and updatedAt.

You can demo it at blog.nverk.me.

About

The simplest static site generator for Obsidian notes written in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages