1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2024-11-22 07:45:39 +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 {
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(),
}