add general cache
update cache api
update nav bar cache location
add function for header rendering
rename template file
add function for content rendering
add function for footer rendering
fix issue: the key name should be changed according to different templates
update templates
fix small issues
remove usage of the deprecated variable
major update: refine the entire publication process