move template files
1 file changed, 4 insertions(+), 3 deletions(-)
changed files
M templates/page.go → domain/content/templates/page.go
@@ -2,15 +2,16 @@ package templates import ( "alin.ovh/homestead/domain/content" + "alin.ovh/homestead/domain/web/templates" g "alin.ovh/gomponents" . "alin.ovh/gomponents/html" ) -func Page(site SiteSettings, page *content.Post) g.Node { - return Layout(site, PageSettings{ +func Page(site templates.SiteSettings, page *content.Post) g.Node { + return templates.Layout(site, templates.PageSettings{ Title: page.Title, - TitleAttrs: Attrs{"class": "h-card", "rel": "author"}, + TitleAttrs: templates.Attrs{"class": "h-card", "rel": "author"}, }, Article( Header( H1(Class("p-name"), g.Text(page.Title)),