From db737e9616f03c220556458310176e0265854ac3 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Fri, 24 Apr 2015 11:22:06 +0200 Subject: [PATCH] Add external RSS feed discovery, see #79 Link to feeds for GitHub releases (global) and Medium posts (per language) --- content/en/template.json | 8 +++++++- source/project.js | 8 +++++++- source/templates/main.html | 6 ++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/content/en/template.json b/content/en/template.json index b48c12f..fcd3af7 100644 --- a/content/en/template.json +++ b/content/en/template.json @@ -42,6 +42,12 @@ "es6": "ES6", "faq": "FAQ", "faq_verbose": "Frequently Asked Questions" - } + }, + "rss": [ + { + "title": "Weekly Updates (Medium)", + "url": "https://medium.com/feed/@iojs" + } + ] } } diff --git a/source/project.js b/source/project.js index ff63a1d..fb91f56 100644 --- a/source/project.js +++ b/source/project.js @@ -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`; diff --git a/source/templates/main.html b/source/templates/main.html index f5a9cf9..7608c22 100644 --- a/source/templates/main.html +++ b/source/templates/main.html @@ -24,6 +24,12 @@ + {{#each project.links.rss}} + + {{/each}} + {{#each i18n.links.rss}} + + {{/each}}