all repos — homestead @ 72b4c0f972a3bdb1a5bec19544d828f2942a6fab

Code for my website

use pointers to posts

Alan Pearce
commit

72b4c0f972a3bdb1a5bec19544d828f2942a6fab

parent

445c43ef8b981bfacc8b465b3997da413370043f

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

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