diff options
| author | Alex Scerba <alex@scerba.org> | 2025-02-11 14:26:01 -0500 | 
|---|---|---|
| committer | Alex Scerba <alex@scerba.org> | 2025-02-11 14:26:01 -0500 | 
| commit | 9811992f6d1ea7e2f08c419e071d44c58cf158ca (patch) | |
| tree | 257b6f0d00388a4865b2f43e0f28fd6f3ca7e14d | |
| parent | c452c2c5784659436e0ab8775ecb69fe4d5ebe6a (diff) | |
Add categories to pass as valid feed
| -rw-r--r-- | cmd/http/feed.go | 6 | 
1 files changed, 4 insertions, 2 deletions
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  | 
