style: auto format
This commit is contained in:
parent
8a96fcb83c
commit
1dc83ebc14
16
docs/bbs.md
16
docs/bbs.md
|
|
@ -192,6 +192,14 @@ pageClass: routes
|
|||
|
||||
</Route>
|
||||
|
||||
## The Ring of Wonder
|
||||
|
||||
### 首页更新
|
||||
|
||||
<Route author="shiningdracon" example="/trow/portal" path="/trow/portal" />
|
||||
|
||||
</Route>
|
||||
|
||||
## V2EX
|
||||
|
||||
### 最热 / 最新主题
|
||||
|
|
@ -777,11 +785,3 @@ pageClass: routes
|
|||
| 灵异事件 | 灵异图片 | 民间奇谈 |
|
||||
| ------------- | ------------ | ------------ |
|
||||
| lingyishijain | lingyitupian | minjianqitan |
|
||||
|
||||
## The Ring of Wonder
|
||||
|
||||
### 首页更新
|
||||
|
||||
<Route author="shiningdracon" example="/trow/portal" path="/trow/portal" />
|
||||
|
||||
</Route>
|
||||
|
|
|
|||
|
|
@ -17,16 +17,20 @@ module.exports = async (ctx) => {
|
|||
title: `The Ring of Wonder - Portal`,
|
||||
link: `https://trow.cc`,
|
||||
description: `The Ring of Wonder 首页更新`,
|
||||
item: list && list.map((index, item) => {
|
||||
item = $(item);
|
||||
const dateraw = item.find('.postdetails').text();
|
||||
return {
|
||||
title: item.find('.maintitle p:nth-child(2) > a').text(),
|
||||
description: item.find('.portal_news_content .row18').html(),
|
||||
link: item.find('.maintitle p:nth-child(2) > a').attr('href'),
|
||||
author: item.find('.postdetails a').text(),
|
||||
pubDate: timezone(parseDate(dateraw.slice(3), 'YYYY-MM-DD, HH:mm'), +8),
|
||||
};
|
||||
}).get(),
|
||||
item:
|
||||
list &&
|
||||
list
|
||||
.map((index, item) => {
|
||||
item = $(item);
|
||||
const dateraw = item.find('.postdetails').text();
|
||||
return {
|
||||
title: item.find('.maintitle p:nth-child(2) > a').text(),
|
||||
description: item.find('.portal_news_content .row18').html(),
|
||||
link: item.find('.maintitle p:nth-child(2) > a').attr('href'),
|
||||
author: item.find('.postdetails a').text(),
|
||||
pubDate: timezone(parseDate(dateraw.slice(3), 'YYYY-MM-DD, HH:mm'), +8),
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue