domain/content/publisher/templates/index.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | package templates import ( g "alin.ovh/gomponents" . "alin.ovh/gomponents/html" base "alin.ovh/homestead/domain/web/templates" ) type PageSettings struct { User string base.PageSettings } func IndexPage(site base.SiteSettings, page PageSettings) g.Node { return Layout(site, page.PageSettings, P( g.Textf("Hello, %s", page.User), ), ) } |