diff options
author | Alan Pearce | 2024-06-27 13:34:21 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-27 13:34:21 +0200 |
commit | 879cc25421c66a959ab801f0937b4264a461fc7e (patch) | |
tree | 29141c22ef84cfc36ba74302b14546c21dbef199 /templates/list.templ | |
parent | d07ec650aafcfe4692bba8f481bc3cb8204cd4b0 (diff) | |
download | website-879cc25421c66a959ab801f0937b4264a461fc7e.tar.lz website-879cc25421c66a959ab801f0937b4264a461fc7e.tar.zst website-879cc25421c66a959ab801f0937b4264a461fc7e.zip |
use pointer to config in builder & templates
Diffstat (limited to 'templates/list.templ')
-rw-r--r-- | templates/list.templ | 4 |
1 files changed, 2 insertions, 2 deletions
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{ |