all repos — homestead @ 08487ad57405c6e9e0673bdcf042a13c5639fdc2

Code for my website

move template files

Alan Pearce
commit

08487ad57405c6e9e0673bdcf042a13c5639fdc2

parent

82424b77fba708e4450c1a0cec5b0c7967b13d7b

1 file changed, 4 insertions(+), 3 deletions(-)

changed files
M templates/page.godomain/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)),