diff options
| author | Valentin Popov <valentin@popov.link> | 2026-04-22 21:53:50 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-04-22 21:53:50 +0300 |
| commit | 9a0746a4715400ab8ef37ec23a4df93ae712e74b (patch) | |
| tree | 5678821ab8e56f3098a26240f5db0f13fa25bf5c /src/utils/createOgImage.ts | |
| parent | a6efbdc3aba7cbc3918976ad1a3c4143363c6f7a (diff) | |
| download | popov.link-9a0746a4715400ab8ef37ec23a4df93ae712e74b.tar.xz popov.link-9a0746a4715400ab8ef37ec23a4df93ae712e74b.zip | |
feat: add RSS feed generation and update package metadata
- 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.
Diffstat (limited to 'src/utils/createOgImage.ts')
| -rw-r--r-- | src/utils/createOgImage.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/createOgImage.ts b/src/utils/createOgImage.ts index da2cece..67731a7 100644 --- a/src/utils/createOgImage.ts +++ b/src/utils/createOgImage.ts @@ -5,7 +5,7 @@ import { Resvg } from "@resvg/resvg-js"; import dayjs from "dayjs"; import satori from "satori"; -export async function createOgImage(title: string, datePublished: Date): Promise<Buffer> { +export async function createOgImage(title: string, datePublished: Date): Promise<Uint8Array> { const formattedDate = dayjs(datePublished).format("MMMM DD, YYYY"); const markup = await satori( |
