all repos — homestead @ e586c122cf3b8fb845f8836f9361406ad94c844c

Code for my website

make posts a bit more abstract

Alan Pearce
commit

e586c122cf3b8fb845f8836f9361406ad94c844c

parent

143c1d889fb83fe3db5642e2f3ac6e15587929ab

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

changed files
M templates/homepage.templtemplates/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>