move templ templates into separate package
1 file changed, 5 insertions(+), 5 deletions(-)
changed files
M internal/builder/list.templ → templates/list.templ
@@ -1,12 +1,12 @@ -package builder +package templates import ( "website/internal/config" "website/internal/content" ) -templ tagPage(config config.Config, tag string, posts []content.Post, path string) { - @page(config, PageSettings{ +templ TagPage(config config.Config, tag string, posts []content.Post, path string) { + @Page(config, PageSettings{ Title: tag, Path: path, TitleAttrs: templ.Attributes{@@ -24,8 +24,8 @@ @list(posts) } } -templ listPage(config config.Config, posts []content.Post, path string) { - @page(config, PageSettings{ +templ ListPage(config config.Config, posts []content.Post, path string) { + @Page(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{ "class": "p-author h-card",