feat: add RSS xml (#34)

* feat: add RSS xml

---------

Co-authored-by: saicaca <zephyird@gmail.com>
This commit is contained in:
CorrectRoad
2024-04-22 23:42:47 +08:00
committed by GitHub
parent 0676b01b6a
commit e80999669a
4 changed files with 138 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ import ImageWrapper from "@components/misc/ImageWrapper.astro";
import {pathsEqual} from "@utils/url-utils";
import ConfigCarrier from "@components/ConfigCarrier.astro";
import {siteConfig} from "@/config";
import {profileConfig, siteConfig} from "@/config";
interface Props {
title: string;
@@ -84,6 +84,8 @@ if (title) {
<link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.16.9/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<link rel="alternate" type="application/rss+xml" title={profileConfig.name} href={`${Astro.site}rss.xml`}/>
<style define:vars={{ configHue }}></style> <!-- defines global css variables. This will be applied to <html> <body> and some other elements idk why -->
</head>