aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 22:49:17 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 22:49:17 +0100
commit892858567f0b5bc8719801bacd1e81d4334c2c7e (patch)
treef34d01b0ee1d27461f7f130fb287fe7a21c69619 /main.go
parentf616d8f24e96c3f400d47a9f0ecc2af70d4694d4 (diff)
feat(style): simple card
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.go b/main.go
index 50bc462..e05c422 100644
--- a/main.go
+++ b/main.go
@@ -55,5 +55,15 @@ func main() {
}
g.Templates = append(g.Templates, "templates/base/*.gohtml")
- //g.StartServer(":80")
+ t := golatt.Template{
+ Golatt: g,
+ Name: "index",
+ Title: data.Person.Name,
+ Data: &data,
+ URL: "/",
+ }
+
+ g.HandleFunc("/", t.Handle())
+
+ g.StartServer(":8000")
}