Skip to content

Commit

Permalink
Merge 09eca02 into 5b85277
Browse files Browse the repository at this point in the history
  • Loading branch information
sonniesedge committed Aug 7, 2019
2 parents 5b85277 + 09eca02 commit fb67a00
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rss2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default (ins: Feed) => {
link: { _text: options.link },
description: { _text: options.description },
lastBuildDate: { _text: options.updated ? options.updated.toUTCString() : new Date().toUTCString() },
docs: { _text: "http://blogs.law.harvard.edu/tech/rss" },
docs: { _text: "https://validator.w3.org/feed/docs/rss2.html" },
generator: { _text: options.generator || generator }
}
}
Expand All @@ -33,7 +33,7 @@ export default (ins: Feed) => {

/**
* Channel Image
* http://cyber.law.harvard.edu/rss/rss.html#ltimagegtSubelementOfLtchannelgt
* https://validator.w3.org/feed/docs/rss2.html#ltimagegtSubelementOfLtchannelgt
*/
if (options.image) {
base.rss.channel.image = {
Expand All @@ -45,15 +45,15 @@ export default (ins: Feed) => {

/**
* Channel Copyright
* http://cyber.law.harvard.edu/rss/rss.html#optionalChannelElements
* https://validator.w3.org/feed/docs/rss2.html#optionalChannelElements
*/
if (options.copyright) {
base.rss.channel.copyright = { _text: options.copyright };
}

/**
* Channel Categories
* http://cyber.law.harvard.edu/rss/rss.html#comments
* https://validator.w3.org/feed/docs/rss2.html#comments
*/
ins.categories.map(category => {
if (!base.rss.channel.category) {
Expand Down Expand Up @@ -99,7 +99,7 @@ export default (ins: Feed) => {

/**
* Channel Categories
* http://cyber.law.harvard.edu/rss/rss.html#hrelementsOfLtitemgt
* https://validator.w3.org/feed/docs/rss2.html#hrelementsOfLtitemgt
*/
base.rss.channel.item = [];

Expand Down Expand Up @@ -134,7 +134,7 @@ export default (ins: Feed) => {
}
/**
* Item Author
* http://cyber.law.harvard.edu/rss/rss.html#ltauthorgtSubelementOfLtitemgt
* https://validator.w3.org/feed/docs/rss2.html#ltauthorgtSubelementOfLtitemgt
*/
if (Array.isArray(entry.author)) {
item.author = [];
Expand Down

0 comments on commit fb67a00

Please sign in to comment.