blob: 4c8b4e046a72b4c0a80ad7f4f9730495329062ca (
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
27
28
29
30
31
|
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 Comp. Sci."},
PageContact: {"contact"},
}
type PageData struct {
Page string
Pages []string
Sections []string
Content template.HTML
}
|