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

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(