feat: add RSS feed generation and update package metadata
All checks were successful
Test / npm test (push) Successful in 37s
RenovateBot / renovate (push) Successful in 1m25s

- Implemented a new RSS feed generation feature in src/pages/feed.xml.ts, allowing users to follow blog updates.
- Updated package.json and package-lock.json to include license information and new type definitions for markdown-it and sanitize-html.
- Refactored createOgImage function to return Uint8Array instead of Buffer for better compatibility.
- Simplified pageSchema by removing the optional mainEntityId parameter for cleaner schema generation.
This commit is contained in:
2026-04-22 18:53:50 +00:00
parent a6efbdc3ab
commit 9a0746a471
5 changed files with 81 additions and 348 deletions

View File

@@ -3,11 +3,11 @@
"type": "module",
"version": "2025.01.24",
"private": true,
"license": "MIT",
"packageManager": "npm@11.12.1",
"browserslist": [
">0.2%",
"not dead",
"IE 11"
"not dead"
],
"scripts": {
"format": "prettier --write .",
@@ -29,7 +29,6 @@
"cssnano": "^7.0.7",
"cssnano-preset-advanced": "^7.0.7",
"dayjs": "^1.11.13",
"geist": "^1.4.2",
"globby": "^16.0.0",
"gray-matter": "^4.0.3",
"markdown-it": "^14.1.1",
@@ -46,6 +45,8 @@
"unist-util-visit": "^5.1.0"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
"@types/sanitize-html": "^2.16.1",
"prettier": "^3.5.3",
"prettier-plugin-astro": "^0.14.1"
}