Update dependencies; add rss feed

This commit is contained in:
2025-01-23 14:53:26 -08:00
parent 3c067b6c49
commit 935d2a9077
4 changed files with 45 additions and 22 deletions

View File

@@ -18,6 +18,7 @@
},
"dependencies": {
"@astrojs/mdx": "^4.0.7",
"@astrojs/rss": "^4.0.11",
"@astrojs/sitemap": "^3.2.1",
"lucide-react": "^0.468.0",
"react": "^18.3.1",

24
src/pnpm-lock.yaml generated
View File

@@ -11,6 +11,9 @@ importers:
'@astrojs/mdx':
specifier: ^4.0.7
version: 4.0.7(astro@5.1.9(jiti@1.21.7)(rollup@4.31.0)(typescript@5.7.3)(yaml@2.7.0))
'@astrojs/rss':
specifier: ^4.0.11
version: 4.0.11
'@astrojs/sitemap':
specifier: ^3.2.1
version: 3.2.1
@@ -102,6 +105,9 @@ packages:
react: ^17.0.2 || ^18.0.0 || ^19.0.0
react-dom: ^17.0.2 || ^18.0.0 || ^19.0.0
'@astrojs/rss@4.0.11':
resolution: {integrity: sha512-3e3H8i6kc97KGnn9iaZBJpIkdoQi8MmR5zH5R+dWsfCM44lLTszOqy1OBfGGxDt56mpQkYVtZJWoxMyWuUZBfw==}
'@astrojs/sitemap@3.2.1':
resolution: {integrity: sha512-uxMfO8f7pALq0ADL6Lk68UV6dNYjJ2xGUzyjjVj60JLBs5a6smtlkBYv3tQ0DzoqwS7c9n4FUx5lgv0yPo/fgA==}
@@ -1039,6 +1045,10 @@ packages:
resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
engines: {node: '>=8.6.0'}
fast-xml-parser@4.5.1:
resolution: {integrity: sha512-y655CeyUQ+jj7KBbYMc4FG01V8ZQqjN+gDYGJ50RtfsUB8iG9AmwmwoAgeKLJdmueKKMrH1RJ7yXHTSoczdv5w==}
hasBin: true
fastq@1.18.0:
resolution: {integrity: sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==}
@@ -1941,6 +1951,9 @@ packages:
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
engines: {node: '>=4'}
strnum@1.0.5:
resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}
style-to-object@1.0.8:
resolution: {integrity: sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==}
@@ -2338,6 +2351,11 @@ snapshots:
- tsx
- yaml
'@astrojs/rss@4.0.11':
dependencies:
fast-xml-parser: 4.5.1
kleur: 4.1.5
'@astrojs/sitemap@3.2.1':
dependencies:
sitemap: 8.0.0
@@ -3315,6 +3333,10 @@ snapshots:
merge2: 1.4.1
micromatch: 4.0.8
fast-xml-parser@4.5.1:
dependencies:
strnum: 1.0.5
fastq@1.18.0:
dependencies:
reusify: 1.0.4
@@ -4668,6 +4690,8 @@ snapshots:
strip-bom@3.0.0: {}
strnum@1.0.5: {}
style-to-object@1.0.8:
dependencies:
inline-style-parser: 0.2.4

20
src/src/pages/rss.xml.ts Normal file
View File

@@ -0,0 +1,20 @@
import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
import type { APIContext } from "astro";
export async function GET(context: APIContext) {
const blog = await getCollection("blog");
return rss({
title: "Timothy Pidashev",
description: "My experiences and technical insights into software development and the ever-evolving world of programming.",
site: context.site!,
items: blog.map((post) => ({
title: post.data.title,
pubDate: post.data.date,
description: post.data.description,
link: `/blog/${post.slug}/`,
})),
customData: `<language>en-us</language>`,
});
}

File diff suppressed because one or more lines are too long