1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2024-11-26 01:15:40 +00:00

feed: add a link per item

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-02-09 14:20:00 -05:00
parent dabb6e7506
commit 99d1f75308
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -32,7 +32,7 @@ func ToFeed(link string, entries []Entry) (*feeds.Feed, error) {
for i, e := range entries { for i, e := range entries {
feed.Items[i] = &feeds.Item{ feed.Items[i] = &feeds.Item{
Created: e.Date, 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(), Description: e.ToChangeLog(),
} }