compatible with node 0.8
support site.baseurl
support permalink
sort posts
pagination and archive