add mkdir_p for make parent directory, like linux mkdir -p
refactor get category method for multi level directory
refactor PageGenerator
refactor parse_configs and add unittest
add docstring
Modify init site

* refactor initsite class
* add a default page when init site
Compatible with previous version, which default version is post
Merge branch dev