Find a file
facundoolano 88efad43db expose site posts and tags to template rendering
Squashed commit of the following:

commit c45734422ef038438a0b6eb4c3065df9cbebcc5e
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 21:27:47 2024 -0300

    tags test passing

commit 88294405603b2103f9f8cba3b130ad2d40e58a36
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 21:12:08 2024 -0300

    ensure posts are sorted by date

commit df7c945fcc1490613b6068da3fc487b9ffa44ba5
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:55:51 2024 -0300

    prepare to test tags

commit 3d7c3f380c3933d6cd9f949d3d2cf9ef144bd6ae
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:51:08 2024 -0300

    preload context in site fields

commit a3afaacc67a9d748cfd42ecbeb7b2d302c3560b2
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:39:42 2024 -0300

    test passing pending refactor

commit 13de5017f654c8d82b1ba7beb01066a9c22f19fc
Author: facundoolano <facundo.olano@gmail.com>
Date:   Tue Feb 13 20:18:07 2024 -0300

    add (failing) archive test
2024-02-13 21:32:04 -03:00
commands expose site posts and tags to template rendering 2024-02-13 21:32:04 -03:00
site expose site posts and tags to template rendering 2024-02-13 21:32:04 -03:00
templates expose site posts and tags to template rendering 2024-02-13 21:32:04 -03:00
.gitignore Initial commit 2024-02-09 11:28:59 -03:00
go.mod extract site to its own mod 2024-02-12 15:59:18 -03:00
go.sum extract site to its own mod 2024-02-12 15:59:18 -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: