package viewmodel import ( "git.aiterp.net/AiteRP/aitestory/model" "git.aiterp.net/gisle/wrouter/auth" ) // PageList is a view model for rendering the front page type PageList struct { Base Headers []model.Header ActiveCategory model.PageCategory Categories []model.PageCategory ActiveTag model.Tag FavoriteTags []model.Tag } // Setup sets up the page model and the base, and should // be run after the details have been filled in. func (pl *PageList) Setup(user *auth.User) { pl.setupBase(user, "Index") }