all repos — homestead @ 0a5f1b4df8306eaa0d752767f444becf8efa991f

Code for my website

use pointer to config in builder & templates

Alan Pearce
commit

0a5f1b4df8306eaa0d752767f444becf8efa991f

parent

b38e78e775d934fbfd3303b635042d98cac57891

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

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