feat(legal): credits page
This commit is contained in:
parent
6a177e4663
commit
7d6f278ebf
4 changed files with 53 additions and 3 deletions
12
main.go
12
main.go
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue