1.6 KiB
1.6 KiB
Changelog
1.7
- Add support for Feed Categories
- RSS: http://www.rssboard.org/rss-specification#ltcategorygtSubelementOfLtitemgt
- Atom: https://tools.ietf.org/html/rfc4287#section-4.2.2
- Create the
EntryCategorydatatype
1.6.1
- Upgrade to yesod-core 1.6.0
1.6
- Create new datatype
EntryEnclosurefor self-documentation offeedEntryEnclosure.
1.5
Yesod/FeedTypes.hs
- added
feedLogofield toFeedtype asMaybe (url, Text). Should this field result inNothing, nothing will be added to the feed.url: Defines the URL to the logi imageText: Is the description of the logo image. Will only be used for RSS feeds
- added
feedEntryEnclosurefield toFeedEntrytype asMaybe (url, Int, Text). Should this field result inNothing, no data will be added to the feed entry.url: Defines the URL to the enclosed dataInt: Is the content size in bytes. RSS requires this.Text: Is the MIME-type of the enclosed file. RSS requires this
Yesod/AtomFeed.hs
- modified
templatefunction to append an<logo>url</logo>tag at the end of the feed, when the providedfeedLogois notNothing. This might look awkward, since it will be appended after the entries. - modified
entryTemplateto append an<link rel="enclosure" href=url>to the feed entry.
Yesod/RssFeed.hs
- modified
templatefunction to append an<image>tag with its three required components<url>,<title>and<link>.<url>and<title>will be filled fromfeedLogo,<link>will befeedLinkHome. - modified
entryTemplatefunction to append an<enclosure type=mime length=length url=url>to the feed entry