mirror of
https://codeberg.org/theamazing0/portfolio.git
synced 2025-10-30 02:12:19 -04:00
Made some fixes
This commit is contained in:
parent
4354cb3824
commit
d344a9940a
3 changed files with 13 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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>`,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue