mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-01 09:38:04 +08:00
* 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
21 lines
798 B
JavaScript
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, '%')`,
|
|
},
|
|
});
|
|
};
|