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/post.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/post.templ') diff --git a/templates/post.templ b/templates/post.templ index 7b82584..c432e57 100644 --- a/templates/post.templ +++ b/templates/post.templ @@ -19,7 +19,7 @@ templ postDate(d time.Time) { } -templ PostPage(config config.Config, post content.Post) { +templ PostPage(config *config.Config, post content.Post) { @Page(config, PageSettings{ Title: post.Title, TitleAttrs: templ.Attributes{ -- cgit 1.4.1