Just my home made static blog generator
To create a new blog :
cd /path/to/my/blog/
glowing-dangerzone new
This will generate following folders :
layouts : place for HTML layout files
posts : place for your posts
assets : place for your css, js, the whole directory will be copied to the build directory
To create a post :
glowing-dangerzone post -title='This is a pen, that is a book'
It will generate a folder named this-is-a-pen-that-is-a-book
under posts
. Inside the folder, a post.md
will also be generated with following content :
---
date: 2015-01-12
title: This is a pen, that is a book
---
Then you can start to write your post.
To generate static files for your blog :
glowing-dangerzone build
It will create a folder blog
and put all generated files under it.
glowing-dangerzone serve -port=8080
Then it will run a file server on blog
folder.
All configuration values should be stored as system environment variables, there are:
- GD_GITHUB_ACCESS_TOKEN : Required. Access token of github, it will be used when convert markdown to HTML
- GD_BASE_URL : Required. URL of the blog, should ended with a slash (ex: http://localhost/)