diff --git a/core/blog.go b/core/blog.go index c52be92..9ca5ab3 100644 --- a/core/blog.go +++ b/core/blog.go @@ -110,10 +110,17 @@ func (b *Blog) RSSHandler(w http.ResponseWriter, r *http.Request) { feed.Items = []*feeds.Item{} for i, p := range b.RecentPosts(r, "", "") { + post, _ := posts.Load(p.ID) + var suffix string + if strings.Contains(post.Body, "") { + post.Body = strings.Split(post.Body, "")[0] + suffix = "..." + } + feed.Items = append(feed.Items, &feeds.Item{ Title: p.Title, Link: &feeds.Link{Href: config.Site.URL + p.Fragment}, - Description: strings.Split(p.Body, "")[0], + Description: post.Body + suffix, Created: p.Created, }) if i >= 5 {