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/homepage.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/homepage.templ') diff --git a/templates/homepage.templ b/templates/homepage.templ index 0afbb2f..611a8ff 100644 --- a/templates/homepage.templ +++ b/templates/homepage.templ @@ -5,7 +5,7 @@ import ( "website/internal/content" ) -templ Homepage(config config.Config, posts []content.Post, content string) { +templ Homepage(config *config.Config, posts []content.Post, content string) { @Page(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{ -- cgit 1.4.1