feat(legal): credits page

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-10 00:58:29 +01:00
parent 6a177e4663
commit 7d6f278ebf
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
4 changed files with 53 additions and 3 deletions

12
main.go
View file

@ -55,15 +55,23 @@ func main() {
}
g.Templates = append(g.Templates, "templates/base/*.gohtml")
t := golatt.Template{
home := golatt.Template{
Golatt: g,
Name: "index",
Title: data.Person.Name,
Data: &data,
URL: "/",
}
credits := golatt.Template{
Golatt: g,
Name: "credits",
Title: "Credits",
Data: &data,
URL: "/credits",
}
g.HandleFunc("/", t.Handle())
g.HandleFunc("/", home.Handle())
g.HandleFunc("/credits", credits.Handle())
g.StartServer(":8000")
}