sets up blog functionality