diff --git a/src/components/BlogArticlePreview.astro b/src/components/BlogArticlePreview.astro index 1f3892e..95a1e37 100644 --- a/src/components/BlogArticlePreview.astro +++ b/src/components/BlogArticlePreview.astro @@ -17,6 +17,6 @@ const snippet = Astro.props['content:encodedSnippet'];
{snippet}
- + diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 27868e3..6aae9a2 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -4,7 +4,10 @@ import BlogArticlePreview from '~/components/BlogArticlePreview.astro'; import Parser from 'rss-parser'; const parser = new Parser(); -const feed = await parser.parseURL('https://medium.com/feed/think-do-tank'); +const medium = await parser.parseURL('https://medium.com/feed/think-do-tank'); +const planet = await parser.parseURL('https://dyne.substack.com/feed/'); +const feed = medium.items.concat(planet.items); +feed.sort((a,b)=>new Date(b.isoDate).getTime()-new Date(a.isoDate).getTime()); ---