diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-02-24 15:05:36 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-02-24 15:05:36 +0100 |
| commit | 9ea75094dec2e70c3a4304d54d3cd427cbc5ca51 (patch) | |
| tree | 18d301edce5194fd5c1fdfab38623d176ca6449c /main.go | |
| parent | c6fd25a8411bdf0461af48022c9e2cb07e0eb038 (diff) | |
build(golatt): upgrade to 0.4.0
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -60,16 +60,20 @@ func main() { } var g *golatt.Golatt if dev { - g = golatt.New(templates, os.DirFS("public"), os.DirFS("dist")) + g = golatt.New(golatt.UsableEmbedFS("templates", templates), os.DirFS("public"), os.DirFS("dist")) } else { - g = golatt.New(templates, os.DirFS("public"), golatt.UsableEmbedFS("dist", assets)) + g = golatt.New( + golatt.UsableEmbedFS("templates", templates), + os.DirFS("public"), + golatt.UsableEmbedFS("dist", assets), + ) } g.DefaultSeoData = &golatt.SeoData{ Image: cfg.Image, Description: cfg.Description, Domain: domain, } - g.Templates = append(g.Templates, "templates/base/*.gohtml") + g.Templates = append(g.Templates, "base/*.gohtml") g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle() g.NewTemplate("legal", |
