split content and sitemap code from builder
1 file changed, 7 insertions(+), 4 deletions(-)
changed files
M internal/builder/list.templ → internal/builder/list.templ
@@ -1,8 +1,11 @@ package builder -import "website/internal/config" +import ( + "website/internal/config" + "website/internal/content" +) -templ tagPage(config config.Config, tag string, posts []Post, path string) { +templ tagPage(config config.Config, tag string, posts []content.Post, path string) { @page(config, PageSettings{ Title: tag, Path: path,@@ -21,7 +24,7 @@ @list(posts) } } -templ listPage(config config.Config, posts []Post, path string) { +templ listPage(config config.Config, posts []content.Post, path string) { @page(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{@@ -34,7 +37,7 @@ @list(posts) } } -templ list(posts []Post) { +templ list(posts []content.Post) { <ul class="h-feed"> for _, post := range posts { <li class="h-entry">