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/post.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/post.templ')
-rw-r--r-- | internal/builder/post.templ | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/builder/post.templ b/internal/builder/post.templ index 740c5aa..6f12e5c 100644 --- a/internal/builder/post.templ +++ b/internal/builder/post.templ @@ -3,6 +3,7 @@ package builder import ( "time" "website/internal/config" + "website/internal/content" ) func Unsafe(html string) templ.Component { @@ -18,7 +19,7 @@ templ postDate(d time.Time) { </time> } -templ postPage(config config.Config, post Post) { +templ postPage(config config.Config, post content.Post) { @page(config, PageSettings{ Title: post.Title, TitleAttrs: templ.Attributes{ |