forked from WarwickCyberSoc/society-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.go
More file actions
95 lines (83 loc) · 2.32 KB
/
config.go
File metadata and controls
95 lines (83 loc) · 2.32 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package main
import (
"html/template"
)
type Config struct {
templates map[string]*template.Template
Title string `yaml:"title"`
Description string `yaml:"description"`
DiscordURL string `yaml:"discordURL"`
InstagramURL string `yaml:"instagramURL"`
TwitterURL string `yaml:"twitterURL"`
GithubURL string `yaml:"githubURL"`
SocietyURL string `yaml:"societyURL"`
Email string `yaml:"email"`
Exec []execMember `yaml:"exec"`
Navbar []navbarLink `yaml:"navbar"`
Achievements []achievement `yaml:"achievements"`
GoogleCalendarAPIKey string `yaml:"googleCalendarAPIKey"`
GoogleCalendarID string `yaml:"googleCalendarID"`
GoogleCalendarURL string `yaml:"googleCalendarURL"`
Posts []post `yaml:"posts"`
Resources []resource `yaml:"resources"`
Sponsors []sponsor `yaml:"sponsors"`
ConfSponsors []confsponsor `yaml:"confSponsors"`
Schedule []conferenceSchedule `yaml:"-"`
Rooms []string `yaml:"rooms"`
Timeslots []string `yaml:"timeslots"`
Events []conferenceEvent `yaml:"events"`
SkipMap map[string]bool `yaml:"-"`
}
type post struct {
Title string `yaml:"title"`
Author string `yaml:"author"`
Link string `yaml:"link"`
}
type resource struct {
Title string `yaml:"title"`
Link string `yaml:"link"`
Description string `yaml:"description"`
}
type execMember struct {
Name string `yaml:"name"`
Role string `yaml:"role"`
}
type navbarLink struct {
Name string `yaml:"name"`
Link string `yaml:"link"`
}
type achievement struct {
Title string `yaml:"title"`
Year string `yaml:"year"`
}
type sponsor struct {
Name string `yaml:"name"`
Link string `yaml:"link"`
Image string `yaml:"image"`
Description string `yaml:"description"`
}
type confsponsor struct {
Name string `yaml:"name"`
Link string `yaml:"link"`
Image string `yaml:"image"`
Description string `yaml:"description"`
}
type conferenceEvent struct {
Title string `yaml:"title"`
Speaker string `yaml:"speaker"`
Company string `yaml:"company"`
Room string `yaml:"room"`
Start string `yaml:"start"`
End string `yaml:"end"`
RowSpan int `yaml:"-"`
}
type conferenceSchedule struct {
Rooms []string `yaml:"rooms"`
Timeslots []string `yaml:"timeslots"`
Events []conferenceEvent `yaml:"events"`
SkipMap map[string]bool
}
type TemplateData struct {
Config Config
Schedule conferenceSchedule
}