package internal import "html/template" const ( PageHome = "home" PageProjects = "projects" PageResume = "resume" PageContact = "contact" ) var ValidPages = []string{PageHome, PageProjects, PageResume, PageContact} var PageSections = map[string][]string{ PageHome: {"intro", "about"}, PageProjects: {"intro", "kal"}, PageResume: {"intro", "BSc in Computer Science"}, PageContact: {"contact"}, } type PageData struct { Page string Pages []string Sections []string Content template.HTML }