create blog from markdown files.
rustc 1.13 or later needed
cargo install mdblog
mdblog init blog
mdblog build [-t theme]
mdblog server [-p port] # unimplemented
$ mdblog init myblog
and the init blog directory tree is:
``` $ tree myblog myblog ├── config.toml ├── media ├── posts │ └── hello.md └── _themes └── simple ├── static │ ├── css │ │ ├── highlight.css │ │ └── main.css │ ├── img │ │ ├── favicon.png │ │ └── logo.png │ └── js │ ├── highlight.js │ └── main.js └── templates ├── base.tpl ├── index.tpl ├── post.tpl └── tag.tpl
9 directories, 12 files ```
$ cd myblog
$ mdblog build
and the result blog directory tree is:
``` $ tree . . ├── _builds │ ├── blog │ │ ├── posts │ │ │ └── hello.html │ │ └── tags │ │ ├── hello.html │ │ └── world.html │ ├── index.html │ ├── media │ └── static │ ├── css │ │ ├── highlight.css │ │ └── main.css │ ├── img │ │ ├── favicon.png │ │ └── logo.png │ └── js │ ├── highlight.js │ └── main.js ├── config.toml ├── media ├── posts │ └── hello.md └── _themes └── simple ├── static │ ├── css │ │ ├── highlight.css │ │ └── main.css │ ├── img │ │ ├── favicon.png │ │ └── logo.png │ └── js │ ├── highlight.js │ └── main.js └── templates ├── base.tpl ├── index.tpl ├── post.tpl └── tag.tpl
18 directories, 22 files ```
$ cd _builds
$ python3 -m http.server --bind localhost 8000
toml
[blog]
theme = simple