use pointer to config in builder & templates
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M templates/list.templ → templates/list.templ
@@ -5,7 +5,7 @@ "website/internal/config" "website/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) { @Page(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) { @Page(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{