Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Add external RSS feed discovery, see #79 #324

Merged
merged 1 commit into from
May 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion content/en/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"es6": "ES6",
"faq": "FAQ",
"faq_verbose": "Frequently Asked Questions"
}
},
"rss": [
{
"title": "Weekly Updates (Medium)",
"url": "https://medium.com/feed/@iojs"
}
]
}
}
8 changes: 7 additions & 1 deletion source/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ project.links = {
faq: './faq.html',
faq_verbose: './faq.html',
releases: './releases.html'
}
},
rss: [
{
title: 'Releases (GitHub)',
url: 'https://github.com/iojs/io.js/releases.atom'
}
]
};

var baseURL = `https://iojs.org/dist`;
Expand Down
6 changes: 6 additions & 0 deletions source/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1369">
<meta property="og:image:height" content="1563">
{{#each project.links.rss}}
<link rel="alternate" type="application/atom+xml" title="{{title}}" href="{{url}}" />
{{/each}}
{{#each i18n.links.rss}}
<link rel="alternate" type="application/atom+xml" title="{{title}}" href="{{url}}" />
{{/each}}
</head>

<body markdown-page="{{build.markdownPage}}">
Expand Down