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/post.godomain/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)),