2021-05-04 14:40:40 +00:00
package website
2021-09-09 02:51:43 +00:00
import "git.handmade.network/hmn/hmn/src/templates"
2021-05-04 14:40:40 +00:00
func Manifesto ( c * RequestContext ) ResponseData {
2021-09-09 02:51:43 +00:00
baseData := getBaseDataAutocrumb ( c , "Handmade Manifesto" )
baseData . OpenGraphItems = append ( baseData . OpenGraphItems , templates . OpenGraphItem {
Property : "og:description" ,
Value : "Modern computer hardware is amazing. Manufacturers have orchestrated billions of pieces of silicon into terrifyingly complex and efficient structures…" ,
} )
2021-05-04 14:40:40 +00:00
var res ResponseData
2021-09-09 02:51:43 +00:00
res . MustWriteTemplate ( "manifesto.html" , baseData , c . Perf )
2021-05-04 14:40:40 +00:00
return res
}
func About ( c * RequestContext ) ResponseData {
var res ResponseData
2021-09-01 18:25:09 +00:00
res . MustWriteTemplate ( "about.html" , getBaseDataAutocrumb ( c , "About" ) , c . Perf )
2021-05-04 14:40:40 +00:00
return res
}
func CodeOfConduct ( c * RequestContext ) ResponseData {
2021-09-09 02:51:43 +00:00
baseData := getBaseDataAutocrumb ( c , "Code of Conduct" )
baseData . OpenGraphItems = append ( baseData . OpenGraphItems , templates . OpenGraphItem {
Property : "og:description" ,
Value : "The Handmade community is an international community of creatives dedicated to building and improving high quality software. These are the guidelines we pledge to uphold to maintain a healthy community." ,
} )
2021-05-04 14:40:40 +00:00
var res ResponseData
2021-09-09 02:51:43 +00:00
res . MustWriteTemplate ( "code_of_conduct.html" , baseData , c . Perf )
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 {
2021-09-09 02:51:43 +00:00
baseData := getBaseDataAutocrumb ( c , "Communication Guidelines" )
baseData . OpenGraphItems = append ( baseData . OpenGraphItems , templates . OpenGraphItem {
Property : "og:description" ,
Value : "The Handmade community strives to create an environment conducive to innovation, education, and constructive discussion. These are the principles we expect members to respect." ,
} )
2021-05-04 14:40:40 +00:00
var res ResponseData
2021-09-09 02:51:43 +00:00
res . MustWriteTemplate ( "communication_guidelines.html" , baseData , c . Perf )
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-09-01 18:25:09 +00:00
res . MustWriteTemplate ( "contact.html" , getBaseDataAutocrumb ( c , "Contact Us" ) , c . Perf )
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-09-01 18:25:09 +00:00
res . MustWriteTemplate ( "monthly_update_policy.html" , getBaseDataAutocrumb ( c , "Monthly Update Policy" ) , c . Perf )
2021-05-04 15:14:30 +00:00
return res
}
func ProjectSubmissionGuidelines ( c * RequestContext ) ResponseData {
var res ResponseData
2021-09-01 18:25:09 +00:00
res . MustWriteTemplate ( "project_submission_guidelines.html" , getBaseDataAutocrumb ( c , "Project Submission Guidelines" ) , c . Perf )
2021-05-04 15:14:30 +00:00
return res
}