mirror of
https://github.com/vbatts/sl-feeds.git
synced 2024-11-22 07:45:39 +00:00
commit
cf4e6740bb
1 changed files with 3 additions and 2 deletions
|
@ -30,11 +30,12 @@ func ToFeed(link string, entries []Entry) (*feeds.Feed, error) {
|
|||
}
|
||||
feed.Items = make([]*feeds.Item, len(entries))
|
||||
for i, e := range entries {
|
||||
url := fmt.Sprintf("%s/ChangeLog.txt#src=feeds&time=%d", link, e.Date.Unix())
|
||||
feed.Items[i] = &feeds.Item{
|
||||
Created: e.Date,
|
||||
Link: &feeds.Link{Href: fmt.Sprintf("%s/ChangeLog.txt#src=feeds&time=%d", link, e.Date.Unix())},
|
||||
Link: &feeds.Link{Href: url},
|
||||
Description: e.ToHTML(),
|
||||
Id: fmt.Sprintf("%d", e.Date.Unix()),
|
||||
Id: url,
|
||||
}
|
||||
|
||||
updateWord := "updates"
|
||||
|
|
Loading…
Reference in a new issue