aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/http/feed.go6
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