2024-02-16 19:29:43 +01:00
|
|
|
# jorge
|
2024-02-20 01:58:52 +01:00
|
|
|
A personal (small + opinionated) site generator with [org-mode](https://orgmode.org/) (and markdown) support.
|
2024-02-13 18:58:07 +01:00
|
|
|
|
2024-02-16 00:30:13 +01:00
|
|
|
(NOTE: this is stil a WIP, the doc below is a wishlist, not the current behavior.)
|
|
|
|
|
2024-02-20 01:58:52 +01:00
|
|
|
## Installation
|
|
|
|
Download the [latest release binary](https://github.com/facundoolano/jorge/releases/latest) for your platform, for example:
|
2024-02-13 18:58:07 +01:00
|
|
|
|
2024-02-20 01:58:52 +01:00
|
|
|
$ wget https://github.com/facundoolano/jorge/releases/latest/download/jorge-darwin-amd64 \
|
|
|
|
-O jorge && chmod +x jorge && mv jorge /usr/local/bin
|
2024-02-13 18:58:07 +01:00
|
|
|
|
2024-02-20 01:58:52 +01:00
|
|
|
Alternatively, install with go:
|
2024-02-13 18:58:07 +01:00
|
|
|
|
2024-02-20 01:58:52 +01:00
|
|
|
$ go install github.com/facundoolano/jorge@latest
|
2024-02-13 18:58:07 +01:00
|
|
|
|
2024-02-20 01:58:52 +01:00
|
|
|
## Usage
|
2024-02-13 18:58:07 +01:00
|
|
|
|
2024-02-16 16:54:31 +01:00
|
|
|
```bash
|
2024-02-16 19:29:43 +01:00
|
|
|
$ jorge init myblog
|
2024-02-16 16:54:31 +01:00
|
|
|
> site name: My Blog
|
2024-02-16 18:19:45 +01:00
|
|
|
> author: Facundo Olano
|
|
|
|
> url: https://myblog.olano.dev
|
2024-02-13 18:58:07 +01:00
|
|
|
|
|
|
|
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
|
2024-02-16 16:54:31 +01:00
|
|
|
|
2024-02-13 18:58:07 +01:00
|
|
|
$ cd myblog
|
2024-02-16 19:29:43 +01:00
|
|
|
$ jorge post "My First Post"
|
2024-02-16 16:54:31 +01:00
|
|
|
added draft src/blog/my-first-post.org
|
|
|
|
|
|
|
|
# serve the site locally with live reload
|
2024-02-16 19:29:43 +01:00
|
|
|
$ jorge serve
|
2024-02-13 18:58:07 +01:00
|
|
|
server running at http://localhost:4001/
|
2024-02-16 16:54:31 +01:00
|
|
|
|
|
|
|
# browse to the new post
|
|
|
|
$ open http://localhost:4001/blog/my-first-post
|
|
|
|
|
|
|
|
# add some content
|
2024-02-13 18:58:07 +01:00
|
|
|
$ cat >> src/blog/test.org <<EOF
|
2024-02-20 22:20:13 +01:00
|
|
|
*** Hello world!
|
2024-02-13 18:58:07 +01:00
|
|
|
|
2024-02-16 16:56:46 +01:00
|
|
|
this is my *first* post.
|
|
|
|
EOF
|
2024-02-16 16:54:31 +01:00
|
|
|
|
|
|
|
# remove the draft flag before publishing
|
2024-02-16 16:55:46 +01:00
|
|
|
$ sed -i '/^draft: true$/d' src/blog/my-first-post.org
|
2024-02-16 16:54:31 +01:00
|
|
|
|
2024-02-16 19:29:43 +01:00
|
|
|
$ jorge build
|
2024-02-16 16:54:31 +01:00
|
|
|
wrote target/index.html
|
|
|
|
wrote target/assets/css/main.css
|
|
|
|
wrote target/blog/hello.html
|
|
|
|
wrote target/blog/my-first-post.html
|
|
|
|
wrote target/feed.xml
|
|
|
|
wrote target/tags.html
|
2024-02-13 18:58:07 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
For more details see the:
|
|
|
|
|
2024-02-16 19:29:43 +01:00
|
|
|
- [Tutorial](https://jorge.olano.dev#tutorial)
|
|
|
|
- [Docs](https://jorge.olano.dev#docs)
|
|
|
|
- [Development blog](https://jorge.olano.dev#blog)
|