fix(renderer): asset directory not correct

When use permalink style like `:category/:title/`, which is introduced
in ae0503a, asset directory will be created under category directory.

TODO, refact all these modules