mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-14 01:00:38 +08:00
style: auto format
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = async (ctx) => {
|
|||||||
const summary = $('div.indexs').clone().children().remove().end().text().trim();
|
const summary = $('div.indexs').clone().children().remove().end().text().trim();
|
||||||
const author = $('div.time_s > a').first().text();
|
const author = $('div.time_s > a').first().text();
|
||||||
let imgUrl = 'http:' + ($('img').attr('src') || $('img').attr('data-original'));
|
let imgUrl = 'http:' + ($('img').attr('src') || $('img').attr('data-original'));
|
||||||
if (imgUrl.slice(-7,) === "!square") {
|
if (imgUrl.slice(-7) === '!square') {
|
||||||
imgUrl = imgUrl.slice(0, -7);
|
imgUrl = imgUrl.slice(0, -7);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,10 +48,11 @@ module.exports = async (ctx) => {
|
|||||||
description: description,
|
description: description,
|
||||||
link: link,
|
link: link,
|
||||||
pubDate: time,
|
pubDate: time,
|
||||||
author: author
|
author: author,
|
||||||
};
|
};
|
||||||
return Promise.resolve(single);
|
return Promise.resolve(single);
|
||||||
}));
|
})
|
||||||
|
);
|
||||||
ctx.state.data = {
|
ctx.state.data = {
|
||||||
title: `煎蛋 - 首页`,
|
title: `煎蛋 - 首页`,
|
||||||
link: `http://jandan.net/`,
|
link: `http://jandan.net/`,
|
||||||
|
|||||||
Reference in New Issue
Block a user