hmn/src/website/staticpages.go

67 lines
1.4 KiB
Go
Raw Normal View History

2021-05-04 14:40:40 +00:00
package website
import ()
func Manifesto(c *RequestContext) ResponseData {
var res ResponseData
2021-06-22 10:12:17 +00:00
err := res.WriteTemplate("manifesto.html", getBaseData(c), c.Perf)
if err != nil {
panic(err)
}
2021-05-04 14:40:40 +00:00
return res
}
func About(c *RequestContext) ResponseData {
var res ResponseData
2021-06-22 10:12:17 +00:00
err := res.WriteTemplate("about.html", getBaseData(c), c.Perf)
if err != nil {
panic(err)
}
2021-05-04 14:40:40 +00:00
return res
}
func CodeOfConduct(c *RequestContext) ResponseData {
var res ResponseData
2021-06-22 10:12:17 +00:00
err := res.WriteTemplate("code_of_conduct.html", getBaseData(c), c.Perf)
if err != nil {
panic(err)
}
2021-05-04 14:40:40 +00:00
return res
}
2021-05-04 15:14:30 +00:00
2021-05-04 14:40:40 +00:00
func CommunicationGuidelines(c *RequestContext) ResponseData {
var res ResponseData
2021-06-22 10:12:17 +00:00
err := res.WriteTemplate("communication_guidelines.html", getBaseData(c), c.Perf)
if err != nil {
panic(err)
}
2021-05-04 14:40:40 +00:00
return res
}
2021-05-04 15:14:30 +00:00
2021-05-04 14:40:40 +00:00
func ContactPage(c *RequestContext) ResponseData {
var res ResponseData
2021-06-22 10:12:17 +00:00
err := res.WriteTemplate("contact.html", getBaseData(c), c.Perf)
if err != nil {
panic(err)
}
2021-05-04 14:40:40 +00:00
return res
}
2021-05-04 15:14:30 +00:00
func MonthlyUpdatePolicy(c *RequestContext) ResponseData {
var res ResponseData
2021-06-22 10:12:17 +00:00
err := res.WriteTemplate("monthly_update_policy.html", getBaseData(c), c.Perf)
if err != nil {
panic(err)
}
2021-05-04 15:14:30 +00:00
return res
}
func ProjectSubmissionGuidelines(c *RequestContext) ResponseData {
var res ResponseData
2021-06-22 10:12:17 +00:00
err := res.WriteTemplate("project_submission_guidelines.html", getBaseData(c), c.Perf)
if err != nil {
panic(err)
}
2021-05-04 15:14:30 +00:00
return res
}