use pointers to posts
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M templates/list.templ → templates/list.templ
@@ -5,7 +5,7 @@ "go.alanpearce.eu/homestead/internal/config" "go.alanpearce.eu/homestead/internal/content" ) -templ TagPage(config *config.Config, tag string, posts []content.Post, path string) { +templ TagPage(config *config.Config, tag string, posts []*content.Post, path string) { @Layout(config, PageSettings{ Title: tag, Path: path,@@ -24,7 +24,7 @@ @list(posts) } } -templ ListPage(config *config.Config, posts []content.Post, path string) { +templ ListPage(config *config.Config, posts []*content.Post, path string) { @Layout(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{@@ -37,7 +37,7 @@ @list(posts) } } -templ list(posts []content.Post) { +templ list(posts []*content.Post) { <ul class="h-feed"> for _, post := range posts { <li class="h-entry">