From bbc49fb909d1251b8dc633b8c26ce57dc2e7d8f6 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Mon, 4 Jan 2016 13:23:46 -0500 Subject: [PATCH] blog-index: some extra styling for pagination links --- build.js | 3 ++- layouts/blog-index.hbs | 8 +++++--- scripts/helpers/and.js | 5 +++++ 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 scripts/helpers/and.js 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 +}