summaryrefslogtreecommitdiff
path: root/internal/models.go
blob: 1fb0774174daf28d7b7a2f1c8b6dd1abcf824ed8 (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
32
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
}

type SectionData struct {
	Page     string
	Sections []string
	Content  template.HTML
}