diff options
author | Alan Pearce | 2024-06-18 20:13:26 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-18 20:13:26 +0200 |
commit | b27c96688785372787eb5c3c71a32767fab71ac4 (patch) | |
tree | 2e39bc6cd94724953cf917c509fb141d39690cf1 /internal/builder/list.templ | |
parent | 1d247493e05cdc659e46cd3d8a01d5da1e893867 (diff) | |
download | website-b27c96688785372787eb5c3c71a32767fab71ac4.tar.lz website-b27c96688785372787eb5c3c71a32767fab71ac4.tar.zst website-b27c96688785372787eb5c3c71a32767fab71ac4.zip |
split content and sitemap code from builder
Diffstat (limited to 'internal/builder/list.templ')
-rw-r--r-- | internal/builder/list.templ | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/internal/builder/list.templ b/internal/builder/list.templ index 48563ed..24cafe8 100644 --- a/internal/builder/list.templ +++ b/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 @@ templ tagPage(config config.Config, tag string, posts []Post, path string) { } } -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 @@ templ listPage(config config.Config, posts []Post, path string) { } } -templ list(posts []Post) { +templ list(posts []content.Post) { <ul class="h-feed"> for _, post := range posts { <li class="h-entry"> |