mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-11 07:40:26 +08:00
feat: only output 2 post for wemp, close #2378
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = async (ctx) => {
|
|||||||
const year = new Date().getFullYear();
|
const year = new Date().getFullYear();
|
||||||
const items = await Promise.all(
|
const items = await Promise.all(
|
||||||
$('.post-item__main')
|
$('.post-item__main')
|
||||||
.slice(0, 10)
|
.slice(0, 2)
|
||||||
.get()
|
.get()
|
||||||
.map(async (e) => {
|
.map(async (e) => {
|
||||||
let pubDate = date(
|
let pubDate = date(
|
||||||
|
|||||||
Reference in New Issue
Block a user