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/template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/builder/template.go') diff --git a/internal/builder/template.go b/internal/builder/template.go index 376e48a..9b1d9bd 100644 --- a/internal/builder/template.go +++ b/internal/builder/template.go @@ -9,6 +9,7 @@ import ( "text/template" "website/internal/atom" "website/internal/config" + "website/internal/content" "website/internal/log" "github.com/PuerkitoBio/goquery" @@ -89,7 +90,7 @@ func renderRobotsTXT(config config.Config) (io.Reader, error) { func renderFeed( title string, config config.Config, - posts []Post, + posts []content.Post, specific string, ) (io.Reader, error) { reader, err := loadTemplate("templates/feed.xml") -- cgit 1.4.1