Files
RSSHub/lib/v2/stratechery/index.js
Chenxing Luo 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

21 lines
798 B
JavaScript

const buildData = require('@/utils/common-config');
module.exports = async (ctx) => {
const link = 'https://stratechery.com/';
ctx.state.data = await buildData({
link,
url: link,
title: 'Stratechery by Ben Thompson',
author: 'Ben Thompson',
description: 'Stratechery provides analysis of the strategy and business side of technology and media, and the impact of technology on society. ',
item: {
item: 'article',
title: `$('article > header > h1 > a').text()`,
link: `$('article > header > h1 > a').attr('href')`,
pubDate: `parseDate($('article .entry-date').attr('datetime'))`,
description: `$('article > .entry-content').html().replace(/%/g, '&percnt;')`,
},
});
};