aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-04-17 04:40:59 +0000
committerChristine Dodrill <me@christine.website>2019-04-17 04:40:59 +0000
commit0e992860fcb400ea088df397a08a5c87d615251a (patch)
tree95a6e5d038f119edd883bf947aa98e887fe2519f /cmd
parent55de19d4d5863a2b1ea20b7d98161c314403ac12 (diff)
downloadxesite-0e992860fcb400ea088df397a08a5c87d615251a.tar.xz
xesite-0e992860fcb400ea088df397a08a5c87d615251a.zip
cmd/site: give rss users the content too
Diffstat (limited to 'cmd')
-rw-r--r--cmd/site/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/site/main.go b/cmd/site/main.go
index 8d76786..b562017 100644
--- a/cmd/site/main.go
+++ b/cmd/site/main.go
@@ -59,8 +59,8 @@ type Site struct {
rssFeed *feeds.Feed
jsonFeed *jsonfeed.Feed
- mux *http.ServeMux
- xffmw *xff.XFF
+ mux *http.ServeMux
+ xffmw *xff.XFF
}
func (s *Site) ServeHTTP(w http.ResponseWriter, r *http.Request) {
@@ -153,6 +153,7 @@ func Build() (*Site, error) {
Link: &feeds.Link{Href: "https://christine.website/" + item.Link},
Description: item.Summary,
Created: item.Date,
+ Content: string(item.BodyHTML),
})
s.jsonFeed.Items = append(s.jsonFeed.Items, jsonfeed.Item{