-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds extra elements to RSS items. (#6707)
- Loading branch information
Showing
6 changed files
with
221 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@astrojs/rss': minor | ||
--- | ||
|
||
Added extra elements to the RSS items, including categories and enclosure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,18 @@ export const web1FeedItemWithContent = { | |
...web1FeedItem, | ||
content: `<h1>${web1FeedItem.title}</h1><p>${web1FeedItem.description}</p>`, | ||
}; | ||
export const web1FeedItemWithAllData = { | ||
...web1FeedItem, | ||
categories: ['web1', 'history'], | ||
author: '[email protected]', | ||
commentsUrl: 'http://example.com/comments', | ||
source: { | ||
url: 'http://example.com/source', | ||
title: 'The Web 1.0 blog', | ||
}, | ||
enclosure: { | ||
url: '/podcast.mp3', | ||
length: 256, | ||
type: 'audio/mpeg', | ||
}, | ||
}; |