1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2024-12-22 20:36:29 +00:00

Merge pull request #6 from vbatts/fix_links

feed: add a link per item
This commit is contained in:
Vincent Batts 2017-02-09 13:27:10 -06:00 committed by GitHub
commit 60a23ea96a

View file

@ -32,7 +32,7 @@ func ToFeed(link string, entries []Entry) (*feeds.Feed, error) {
for i, e := range entries {
feed.Items[i] = &feeds.Item{
Created: e.Date,
Link: &feeds.Link{Href: ""},
Link: &feeds.Link{Href: fmt.Sprintf("%s/ChangeLog.txt#src=feeds&time=%d", link, e.Date.Unix())},
Description: e.ToChangeLog(),
}