all repos — homestead @ 7857dae1f6acb57eb60bac9c03744d15d3d2bde4

Code for my website

split content and sitemap code from builder

Alan Pearce
commit

7857dae1f6acb57eb60bac9c03744d15d3d2bde4

parent

8688a232f5958adbdfd36cdbaec68ecab56aaea1

1 file changed, 7 insertions(+), 4 deletions(-)

changed files
M internal/builder/list.templinternal/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">