blob: 0ad4cfcc7a22c12aa7fce86fe43381fee39de71a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
}
|