Fix local images and em dash rendering
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Neeldhara Misra 2026-06-25 05:21:34 +05:30
parent 4b3aa3022e
commit 632543db4d
55 changed files with 432 additions and 117 deletions

View file

@ -2,6 +2,7 @@ import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
import { ACTIVE_BLOG_SITE } from "../blog-sites.js";
import { typographicText } from "@/lib/typography";
export async function GET(context) {
const posts = (await getCollection(ACTIVE_BLOG_SITE.key)).sort(
@ -10,10 +11,12 @@ export async function GET(context) {
return rss({
title: SITE_TITLE,
description: SITE_DESCRIPTION,
description: typographicText(SITE_DESCRIPTION),
site: context.site,
items: posts.map((post) => ({
...post.data,
title: typographicText(post.data.title),
description: typographicText(post.data.description),
link: `/${post.id.replace(/\/index$/, "")}/`,
})),
});