UNPKG
hexo-plugin-aurora
Version:
latest (1.8.4)
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
A plugin for Hexo Aurora theme
hexo-plugin-aurora
/
lib
/
generators
/
page.js
17 lines
(12 loc)
•
266 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const
{ pageMapper } = require(
'../helpers/mapper'
)
class
PageGenerator
{
data
= []
constructor
(pages) {
this
.
data
= pages.
data
} addPages(
data
) {
data
=
data
.concat(
this
.
data
.map(pageMapper))
return
data
} } module.exports = PageGenerator