diff --git a/build.js b/build.js index a16c4d21f6abb..01f6a9af631d2 100755 --- a/build.js +++ b/build.js @@ -191,7 +191,8 @@ 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'), + and: require('./scripts/helpers/and.js') } })) // Pipes the generated files into their respective subdirectory in the build diff --git a/layouts/blog-index.hbs b/layouts/blog-index.hbs index 305e97b34007b..f644c81140ada 100644 --- a/layouts/blog-index.hbs +++ b/layouts/blog-index.hbs @@ -27,11 +27,13 @@ {{#if pagination}} {{/if}} diff --git a/scripts/helpers/and.js b/scripts/helpers/and.js new file mode 100644 index 0000000000000..c792ae6e792d9 --- /dev/null +++ b/scripts/helpers/and.js @@ -0,0 +1,5 @@ +'use strict' + +module.exports = function and (v1, v2) { + return v1 && v2 +}