Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions layouts/blog-index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
{{#if pagination}}
<nav class="pagination">
{{#if pagination.prev.path}}
<a href="/{{ site.locale }}/{{ pagination.prev.path }}">&lt; Newer</a>
<a href="/{{ site.locale }}/{{ pagination.prev.path }}">&nbsp;&lt; Newer&nbsp;</a>
{{/if}}
{{#if (and pagination.next.path pagination.prev.path)}}
|
{{/if}}

{{#if pagination.next.path}}
<a href="/{{ site.locale }}/{{ pagination.next.path }}">Older &gt;</a>
<a href="/{{ site.locale }}/{{ pagination.next.path }}">&nbsp;Older &gt;&nbsp;</a>
{{/if}}
</nav>
{{/if}}
Expand Down
5 changes: 5 additions & 0 deletions scripts/helpers/and.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

module.exports = function and (v1, v2) {
return v1 && v2
}