add global method to set blog relative path