all repos — homestead @ e4e8173ab6124daa84ef012e73c111f111d4a8cf

Code for my website

refactor: make templates take a more specific struct

Alan Pearce
commit

e4e8173ab6124daa84ef012e73c111f111d4a8cf

parent

a9f47f4e4ed3223e86dc1d5c3edd005b8d9ce589

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

changed files
M templates/post.templtemplates/post.templ
@@ -5,7 +5,6 @@ "context"
"io" "time" - "go.alanpearce.eu/homestead/internal/config" "go.alanpearce.eu/homestead/internal/content" )
@@ -22,8 +21,8 @@ { d.Format("2006-01-02") }
</time> } -templ PostPage(config *config.Config, post *content.Post) { - @Layout(config, PageSettings{ +templ PostPage(site SiteSettings, post *content.Post) { + @Layout(site, PageSettings{ Title: post.Title, TitleAttrs: templ.Attributes{ "class": "p-author h-card",