move some func from blogit-html to blogit-core

Signed-off-by: coldnew <coldnew.tw@gmail.com>