make posts a bit more abstract
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M templates/homepage.templ → templates/homepage.templ
@@ -5,7 +5,7 @@ "go.alanpearce.eu/website/internal/config" "go.alanpearce.eu/website/internal/content" ) -templ Homepage(config *config.Config, posts []content.Post, content string) { +templ Homepage(config *config.Config, posts []content.Post, content templ.Component) { @Page(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{@@ -17,7 +17,7 @@ "class": "h-card", }, }) { <div id="content"> - @Unsafe(content) + @content </div> <section> <h2>Latest Posts</h2>