From b27c96688785372787eb5c3c71a32767fab71ac4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 18 Jun 2024 20:13:26 +0200 Subject: split content and sitemap code from builder --- internal/builder/post.templ | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/builder/post.templ') 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) { } -templ postPage(config config.Config, post Post) { +templ postPage(config config.Config, post content.Post) { @page(config, PageSettings{ Title: post.Title, TitleAttrs: templ.Attributes{ -- cgit 1.4.1