cmd/site: give rss users the content too
This commit is contained in:
parent
55de19d4d5
commit
0e992860fc
|
@ -59,8 +59,8 @@ type Site struct {
|
||||||
rssFeed *feeds.Feed
|
rssFeed *feeds.Feed
|
||||||
jsonFeed *jsonfeed.Feed
|
jsonFeed *jsonfeed.Feed
|
||||||
|
|
||||||
mux *http.ServeMux
|
mux *http.ServeMux
|
||||||
xffmw *xff.XFF
|
xffmw *xff.XFF
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Site) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
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},
|
Link: &feeds.Link{Href: "https://christine.website/" + item.Link},
|
||||||
Description: item.Summary,
|
Description: item.Summary,
|
||||||
Created: item.Date,
|
Created: item.Date,
|
||||||
|
Content: string(item.BodyHTML),
|
||||||
})
|
})
|
||||||
|
|
||||||
s.jsonFeed.Items = append(s.jsonFeed.Items, jsonfeed.Item{
|
s.jsonFeed.Items = append(s.jsonFeed.Items, jsonfeed.Item{
|
||||||
|
|
Loading…
Reference in New Issue