From 9811992f6d1ea7e2f08c419e071d44c58cf158ca Mon Sep 17 00:00:00 2001 From: Alex Scerba <alex@scerba.org> Date: Tue, 11 Feb 2025 14:26:01 -0500 Subject: Add categories to pass as valid feed --- cmd/http/feed.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd/http') diff --git a/cmd/http/feed.go b/cmd/http/feed.go index 41ec399..f325caf 100644 --- a/cmd/http/feed.go +++ b/cmd/http/feed.go @@ -22,7 +22,7 @@ func generateFeed(domain string, p *Posts) []byte { <author> <name>Alex Scerba</name> </author> - <id>https://` + domain + `</id> + <id>https://` + domain + `/</id> <updated>` + time.Now().UTC().Format("2006-01-02T15:04:05.000Z") + `</updated>` for _, post := range p.Collection { @@ -31,7 +31,9 @@ func generateFeed(domain string, p *Posts) []byte { <title>` + post.Title + `</title> <link href="https://` + domain + `/posts/` + post.File + `.html"/> <id>https://` + domain + `/posts/` + post.File + `</id> - <published>` + post.Date + `T00:00:00.000Z</published>` + <published>` + post.Date + `T00:00:00.000Z</published> + <updated>` + post.Date + `T00:00:00.000Z</updated> + <summary>Blog post</summary>` entry = entry + ` </entry>` feed = feed + entry -- cgit v1.2.3