style: auto format

This commit is contained in:
GitHub Action
2021-01-25 21:03:57 +00:00
parent 1d92ead1e6
commit 2083d06932

View File

@@ -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/`,