fix template render error when no blog