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:
parent
dabb6e7506
commit
99d1f75308
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue