Made some fixes

This commit is contained in:
theamazing0 2025-07-28 15:45:08 -04:00
parent 4354cb3824
commit d344a9940a
3 changed files with 13 additions and 1 deletions

View file

@ -5,7 +5,7 @@ import icon from "astro-icon";
// https://astro.build/config
export default defineConfig({
site: "https://portfolio.samvidk.pages.dev",
site: "https://portfolio.samvidk.workers.dev",
integrations: [
icon({
include: {

View file

@ -19,6 +19,12 @@ import interWoff2 from "@fontsource-variable/inter/files/inter-latin-wght-normal
<meta name="description" content="Samvid's place on the web!" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<link
rel="alternate"
type="application/rss+xml"
title="Samvid Konchada"
href={new URL("rss.xml", Astro.site)}
/>
<link
rel="preload"
as="font"

View file

@ -1,5 +1,8 @@
import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
import sanitizeHtml from "sanitize-html";
import MarkdownIt from "markdown-it";
const parser = new MarkdownIt();
export async function GET(context) {
const posts = await getCollection("posts");
@ -12,6 +15,9 @@ export async function GET(context) {
pubDate: post.data.pubDate,
description: post.data.description,
link: `/posts/${post.id}/`,
content: sanitizeHtml(parser.render(post.body), {
allowedTags: sanitizeHtml.defaults.allowedTags.concat(["img"]),
}),
})),
customData: `<language>en-us</language>`,
});