aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/main.go b/main.go
index 7905807..eb55d06 100644
--- a/main.go
+++ b/main.go
@@ -1,5 +1,21 @@
package main
+import (
+ "embed"
+ "github.com/anhgelus/golatt"
+)
+
+//go:embed templates
+var templates embed.FS
+
func main() {
+ g := golatt.New(templates)
+ g.DefaultSeoData = &golatt.SeoData{
+ Image: "",
+ Description: "",
+ Domain: "now.anhgelus.world",
+ }
+ g.Templates = append(g.Templates, "templates/page/*.gohtml")
+ g.StartServer(":80")
}