aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-10 00:58:29 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-10 00:58:29 +0100
commit7d6f278ebf42442e3909eb326be5a7c8ba20412a (patch)
treea8a024cae60436437d790a889c59e0b212ba17c5 /main.go
parent6a177e466334086b26689429e3da5a8bfba449de (diff)
feat(legal): credits page
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/main.go b/main.go
index e05c422..0174e6e 100644
--- a/main.go
+++ b/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")
}