static site generator
$ railgun init blog
$ cd blog
$ vim config.py
don't forget to change default config class
config = {
'default': MyConfig
}
$ cd blog
$ railgun new newblog
then
$ vim app/pages/newblog.md
the default article template show below:
title:
date: %Y-%m-%d %H:%M:%S
tags: ['tag1', 'tag2']
the default format for the blog is markdown, you can change it in the config.py file
class Config(object):
# ......
FLATPAGES_EXTENSION = '.md'
$ railgun server
$ railgun build
$ railgun upload
done!
enjoy writing :)
$ git clone https://github.com/misakar/railgun/ railgun
$ cd railgun
$ pip install --editable .
$ git clone https://github.com/misakar/railgun/ railgun
$ cd railgun
$ pip install --editable .
$ py.test -s
add code highlight
back
add blog :)
add tests!
speed up! generate 200 files in just 5s :)
fix bug :(
continuse
- speed up
- tests
- code highlight
- logging system
- theme system
- reverse generation
- article pending state
MIT 2018@misakar
check LICENSE for detail.