Files
RSSHub/lib/v2/miris/blog.js
T
Chenxing LuoandTony ef94bcde8e feat(route): add two blogs: Stratechery & Miris Whispers (#9496)
* Add two blogs

* fix(utils): add parseDate timezone common-config

* Update lib/v2/stratechery/index.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/blog.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/en/blog.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/miris/blog.js
2022-04-08 23:48:28 +08:00

20 lines
631 B
JavaScript

const buildData = require('@/utils/common-config');
module.exports = async (ctx) => {
const link = 'https://blog.miris.design/';
ctx.state.data = await buildData({
link,
url: link,
title: 'Miris Whisper',
author: 'Miris',
description: 'Esoteric technical and sometimes personal stuff...',
item: {
item: 'ul > li',
title: `$('li > a').contents().filter(function () { return this.type === 'text' }).text()`,
link: `$('li > a').attr('href')`,
pubDate: `parseDate($('li > a > .date').text().slice(1, 11))`,
},
});
};