diff --git a/package.json b/package.json index b7650a1a4..ac1ac97bc 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@astrojs/check": "^0.5.4", "@astrojs/mdx": "^2.1.1", "@astrojs/preact": "^3.1.0", + "@astrojs/rss": "^4.0.5", "@astrojs/sitemap": "^3.1.1", "@astrojs/ts-plugin": "^1.5.2", "@astrojs/vercel": "^7.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c064ec4d6..215ed34a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,6 +25,9 @@ dependencies: '@astrojs/preact': specifier: ^3.1.0 version: 3.1.0(@babel/core@7.23.9)(preact@10.19.5)(vite@5.1.3) + '@astrojs/rss': + specifier: ^4.0.5 + version: 4.0.5 '@astrojs/sitemap': specifier: ^3.1.1 version: 3.1.1 @@ -524,6 +527,13 @@ packages: prismjs: 1.29.0 dev: false + /@astrojs/rss@4.0.5: + resolution: {integrity: sha512-IyJVL6z09AQtxbgLaAwebT3T5YKe4oTHDesqydJv1KLHw+zEzzMCFuuNsEyxjiqu7df9+DDCpDXLj/WRiEUXvw==} + dependencies: + fast-xml-parser: 4.3.5 + kleur: 4.1.5 + dev: false + /@astrojs/sitemap@3.1.1: resolution: {integrity: sha512-qPgdBIcDUaea98mTtLfi5z9oXZpzSjEn/kes70/Ex8FOZZ+DIHVKRYOLOtvy8p+FTXr/9oc7BjmIbTYmYLLJVg==} dependencies: @@ -4251,6 +4261,13 @@ packages: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} dev: false + /fast-xml-parser@4.3.5: + resolution: {integrity: sha512-sWvP1Pl8H03B8oFJpFR3HE31HUfwtX7Rlf9BNsvdpujD4n7WMhfmu8h9wOV2u+c1k0ZilTADhPqypzx2J690ZQ==} + hasBin: true + dependencies: + strnum: 1.0.5 + dev: false + /fastq@1.15.0: resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} dependencies: @@ -8037,6 +8054,10 @@ packages: engines: {node: '>=8'} dev: false + /strnum@1.0.5: + resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==} + dev: false + /style-to-object@0.4.2: resolution: {integrity: sha512-1JGpfPB3lo42ZX8cuPrheZbfQ6kqPPnPHlKMyeRYtfKD+0jG+QsXgXN57O/dvJlzlB2elI6dGmrPnl5VPQFPaA==} dependencies: diff --git a/src/components/blog/PostList/PostListLayout.astro b/src/components/blog/PostList/PostListLayout.astro index 3636d1d0d..ebf887fc0 100644 --- a/src/components/blog/PostList/PostListLayout.astro +++ b/src/components/blog/PostList/PostListLayout.astro @@ -17,7 +17,21 @@ const { listTitle, entries } = Astro.props; // const pathname = Astro.url.pathname.replace(/\/$/, ""); --- - + + + +

diff --git a/src/layouts/LayoutBase.astro b/src/layouts/LayoutBase.astro index 2143931e3..c198d9242 100644 --- a/src/layouts/LayoutBase.astro +++ b/src/layouts/LayoutBase.astro @@ -47,6 +47,7 @@ const { + diff --git a/src/pages/blog/posts/[...slug].astro b/src/pages/blog/posts/[...slug].astro index 776c9aaf9..1f84cdd83 100644 --- a/src/pages/blog/posts/[...slug].astro +++ b/src/pages/blog/posts/[...slug].astro @@ -47,6 +47,14 @@ const author = authors[authorId]; ogType="article" ogImageSlug={`blog/posts/${entry.slug}.png`} > + + +