Skip to content

Commit 68e654b

Browse files
author
Farzad Hayatbakhsh
committed
DOC-2608: Add purl.org's content module for encoded content
1 parent c4a2a78 commit 68e654b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

rssfeed.cjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,19 @@ module.exports.register = function () {
7474

7575
// Assemble the complete RSS feed
7676
const rss = `<?xml version="1.0" encoding="UTF-8" ?>
77-
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
78-
<channel>
77+
<rss version="2.0"
78+
xmlns:atom="http://www.w3.org/2005/Atom"
79+
xmlns:content="http://purl.org/rss/1.0/modules/content/"
80+
>
81+
<channel>
7982
<title>${productName} ${productMajorVersion} ${pageTitle}</title>
8083
<link>${siteLinkWithVersion}/${pageName}</link>
8184
<description>${pageDescription}</description>
85+
<language>en</language>
8286
<atom:link href="${siteLink}/rss.xml" rel="self" type="application/rss+xml" />
8387
${rssItems}
84-
</channel>
85-
</rss>`;
88+
</channel>
89+
</rss>`;
8690

8791
// Add RSS feed to site catalog
8892
siteCatalog.addFile({

0 commit comments

Comments
 (0)