move template files
1 file changed, 5 insertions(+), 4 deletions(-)
changed files
M templates/post.go → domain/content/templates/post.go
@@ -4,17 +4,18 @@ import ( "time" "alin.ovh/homestead/domain/content" + "alin.ovh/homestead/domain/web/templates" "alin.ovh/homestead/shared/vcs" g "alin.ovh/gomponents" . "alin.ovh/gomponents/html" ) -func PostPage(site SiteSettings, post *content.Post) g.Node { - return Layout(site, PageSettings{ +func PostPage(site templates.SiteSettings, post *content.Post) g.Node { + return templates.Layout(site, templates.PageSettings{ Title: post.Title, - TitleAttrs: Attrs{"class": "p-author h-card", "rel": "author"}, - BodyAttrs: Attrs{"class": "h-entry"}, + TitleAttrs: templates.Attrs{"class": "p-author h-card", "rel": "author"}, + BodyAttrs: templates.Attrs{"class": "h-entry"}, }, Article( Header( H1(Class("p-name"), g.Text(post.Title)),