all repos — homestead @ 08487ad57405c6e9e0673bdcf042a13c5639fdc2

Code for my website

move template files

Alan Pearce
commit

08487ad57405c6e9e0673bdcf042a13c5639fdc2

parent

82424b77fba708e4450c1a0cec5b0c7967b13d7b

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

changed files
M templates/homepage.godomain/content/templates/homepage.go
@@ -2,6 +2,7 @@ package templates
import ( "alin.ovh/homestead/domain/content" + "alin.ovh/homestead/domain/web/templates" "alin.ovh/homestead/shared/config" g "alin.ovh/gomponents"
@@ -14,11 +15,11 @@ Me []config.MenuItem
Posts []*content.Post } -func Homepage(site SiteSettings, vars HomepageVars, content g.Node) g.Node { - return Layout(site, PageSettings{ +func Homepage(site templates.SiteSettings, vars HomepageVars, content g.Node) g.Node { + return templates.Layout(site, templates.PageSettings{ Title: site.Title, - TitleAttrs: Attrs{"class": "p-name u-url"}, - BodyAttrs: Attrs{"class": "h-card"}, + TitleAttrs: templates.Attrs{"class": "p-name u-url"}, + BodyAttrs: templates.Attrs{"class": "h-card"}, }, Div( ID("content"),