site refactoring to work with nikola v7