feat: only output 2 post for wemp, close #2378

This commit is contained in:
DIYgod 2019-06-12 18:23:43 +08:00
parent 3dde0db910
commit 52deac1909
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module.exports = async (ctx) => {
const year = new Date().getFullYear();
const items = await Promise.all(
$('.post-item__main')
.slice(0, 10)
.slice(0, 2)
.get()
.map(async (e) => {
let pubDate = date(