split content and sitemap code from builder
1 file changed, 2 insertions(+), 1 deletion(-)
changed files
M internal/builder/post.templ → internal/builder/post.templ
@@ -3,6 +3,7 @@ import ( "time" "website/internal/config" + "website/internal/content" ) func Unsafe(html string) templ.Component {@@ -18,7 +19,7 @@ { d.Format("2006-01-02") } </time> } -templ postPage(config config.Config, post Post) { +templ postPage(config config.Config, post content.Post) { @page(config, PageSettings{ Title: post.Title, TitleAttrs: templ.Attributes{