Find a file
Facundo Olano e5917dc21e
build command refactors (#1)
* extract buildTarget function

* first stab at build target rendering refactor

* more cleanup

* properly separate parse and render stages of liquid templates

* move some more rendering from commands to site

* move org rendering again, to fix bug

* revert more unsatisfactory changes

* move build to site

* markdown support

* remove comments

* fix tests

* markdown test

* cleanup scanner bytes usage

* reuse the template engine
2024-02-14 23:54:46 -03:00
commands build command refactors (#1) 2024-02-14 23:54:46 -03:00
site build command refactors (#1) 2024-02-14 23:54:46 -03:00
templates build command refactors (#1) 2024-02-14 23:54:46 -03:00
.gitignore Initial commit 2024-02-09 11:28:59 -03:00
go.mod build command refactors (#1) 2024-02-14 23:54:46 -03:00
go.sum build command refactors (#1) 2024-02-14 23:54:46 -03:00
LICENSE Initial commit 2024-02-09 11:28:59 -03:00
main.go Add a templates package and struct 2024-02-11 13:16:10 -03:00
README.md stub expected interface in README 2024-02-13 19:32:57 -03:00

blorg

A presonal (small + opinionated) site generator with org-mode support.

Install from binary:

$ wget https://github.com/facundoolano/blorg/releases/download/latest/blorg-$(uname -m) \
    -o blorg && chmod +x blorg

Or install with go:

$ go install github.com/facundoolano/blorg

Usage:

$ blorg init myblog
  site name: My Blog
  author: Facundo

  added myblog/README.md
  added myblog/.gitignore
  added myblog/config.yml
  added myblog/layouts/base.html
  added myblog/layouts/post.html
  added myblog/src/index.html
  added myblog/assets/css/main.css
  added myblog/src/blog/hello.org
  added myblog/src/feed.xml
  added myblog/src/tags.html
$ cd myblog
$ blorg post "My First Post"
  added src/blog/my-first-post.org
$ blorg serve &
  server running at http://localhost:4001/
$ cat >> src/blog/test.org <<EOF
  # Hello world!

  this is my *first* post.
  EOF
$ open http://localhost:4001/blog/my-first-post
$ blorg pub
  drafts:
    1. blog/my-first-post.org
  choose file to publish: 1
$ blorg build
  added target/index.html
  added target/assets/css/main.css
  added target/blog/hello.html
  added target/blog/my-first-post.html
  added target/feed.xml
  added target/tags.html

For more details see the: