diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-10 00:58:29 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-10 00:58:29 +0100 |
| commit | 7d6f278ebf42442e3909eb326be5a7c8ba20412a (patch) | |
| tree | a8a024cae60436437d790a889c59e0b212ba17c5 /main.go | |
| parent | 6a177e466334086b26689429e3da5a8bfba449de (diff) | |
feat(legal): credits page
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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") } |
