ESLintify Part 3 (#846)

* ESLintify Part 3

* ESLintify Part 3

* ESLintify Part 3
This commit is contained in:
Yangshun Tay 2018-07-11 03:21:31 -07:00 committed by Endilie Yacop Sucipto
parent 5ac2cee658
commit a7a214fb3a
54 changed files with 435 additions and 497 deletions

View file

@ -16,9 +16,9 @@ const utils = require('./utils.js');
// used to generate entire blog pages, i.e. collection of truncated blog posts
class BlogPageLayout extends React.Component {
getPageURL(page) {
let url = this.props.config.baseUrl + 'blog/';
let url = `${this.props.config.baseUrl}blog/`;
if (page > 0) {
url += 'page' + (page + 1) + '/';
url += `page${page + 1}/`;
}
return url;
}