diff --git a/build.js b/build.js index 04e4b747050e3..5156a12158e9a 100755 --- a/build.js +++ b/build.js @@ -170,7 +170,21 @@ function buildLocale (source, locale) { strftime: require('./scripts/helpers/strftime.js'), apidocslink: require('./scripts/helpers/apidocslink.js'), majorapidocslink: require('./scripts/helpers/majorapidocslink.js'), - summary: require('./scripts/helpers/summary.js') + summary: require('./scripts/helpers/summary.js'), + json: function (context) { + return JSON.stringify(context) + }, + getListJson: function (context) { + var result = context.map(function (item) { + return { + title: item.title, + date: item.date, + local: true, + path: item.path.replace(/\\/, '/') + } + }) + return JSON.stringify(result) + } } })) // Pipes the generated files into their respective subdirectory in the build diff --git a/layouts/announcements.hbs b/layouts/announcements.hbs index 4d933df2d4351..5687cfe5e25a9 100644 --- a/layouts/announcements.hbs +++ b/layouts/announcements.hbs @@ -11,25 +11,77 @@ {{> navigation key='foundation'}}
-
- +
    - {{#each collections.blogAnnounce}} - {{#if title}} -
  • - - {{ title }} -
  • - {{/if}} - {{/each}} +
  • Loading data...
-
- + + {{> footer }} diff --git a/layouts/in-the-news.hbs b/layouts/in-the-news.hbs index c20cf7e9ac94a..bdd63b34f69e0 100644 --- a/layouts/in-the-news.hbs +++ b/layouts/in-the-news.hbs @@ -15,6 +15,7 @@