mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-15 18:17:35 +02:00
ESLintify Part 3 (#846)
* ESLintify Part 3 * ESLintify Part 3 * ESLintify Part 3
This commit is contained in:
parent
5ac2cee658
commit
a7a214fb3a
54 changed files with 435 additions and 497 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue