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

Commit

Permalink
Merge pull request #324 from fhemberger/feature/rss
Browse files Browse the repository at this point in the history
Add external RSS feed discovery, see #79
  • Loading branch information
therebelrobot committed May 4, 2015
2 parents 6ab2c18 + db737e9 commit d8116fe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
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

0 comments on commit d8116fe

Please sign in to comment.