Skip to content

Commit

Permalink
Using news.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jun 15, 2015
1 parent 991cfb5 commit 508574d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ app.get('/api/addons/:addonsId/docs/:docSection', function (req,res) {
}
});


app.get('/api/contributors', function(req, res) {
var contrib = cache.get('allContributors');
if (!contrib) {
Expand Down Expand Up @@ -303,7 +302,7 @@ function findAddonDocSections(addonId) {
function allNews() {
var news = cache.get('allNews');
if (!news) {
var body = fs.readFileSync(config.get('FORGE_WEBSITE_DATA_DIR') + "/docs-news.yaml");
var body = fs.readFileSync(config.get('FORGE_WEBSITE_DATA_DIR') + "/news.yaml");
news = yamlLoadAll(body).map(function (item) {
// Add an ID to the news
item.id = generateId(item.title);
Expand Down

0 comments on commit 508574d

Please sign in to comment.