From b637ff02f660b109d419d99df64c81940f7a8290 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 9 Nov 2024 21:24:31 +0100 Subject: feat(http): init golatt --- main.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'main.go') 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") } -- cgit v1.2.3