From 879cc25421c66a959ab801f0937b4264a461fc7e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 27 Jun 2024 13:34:21 +0200 Subject: use pointer to config in builder & templates --- templates/list.templ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/list.templ') diff --git a/templates/list.templ b/templates/list.templ index 602c15c..94ccf5a 100644 --- a/templates/list.templ +++ b/templates/list.templ @@ -5,7 +5,7 @@ import ( "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 @@ templ TagPage(config config.Config, tag string, posts []content.Post, path strin } } -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{ -- cgit 1.4.1