added routes for rss, sitemap, updated footer

This commit is contained in:
2025-07-17 20:09:01 -04:00
parent 71b3b1f42d
commit bc8e093651
4 changed files with 12 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ export default function Footer() {
<div class="space-y-2">
<a
class="mb-8 text-[#cdd6f4] transition-all duration-300 ease-in-out hover:text-[#cba6f7] hover:drop-shadow-[0_0_20px_rgba(96,165,250,0.7)] hover:scale-110 cursor-pointer visited:text-[#bac2de]"
href={Deno.env.get("BASE_URI_RSS")}
href="/rss"
>
<div class="flex items-center gap-2">
<hi.HiOutlineRss />
@@ -18,7 +18,7 @@ export default function Footer() {
</a>
<a
class="mb-8 text-[#cdd6f4] transition-all duration-300 ease-in-out hover:text-[#cba6f7] hover:drop-shadow-[0_0_20px_rgba(96,165,250,0.7)] hover:scale-110 cursor-pointer visited:text-[#bac2de]"
href={Deno.env.get("BASE_URI_SITEMAP")}
href="/sitemap"
>
<div class="flex items-center gap-2">
<hi.HiOutlineMap />

View File

@@ -12,6 +12,8 @@ import * as $index from "./routes/index.tsx";
import * as $posts_id_ from "./routes/posts/[id].tsx";
import * as $posts_index from "./routes/posts/index.tsx";
import * as $projects_index from "./routes/projects/index.tsx";
import * as $rss_index from "./routes/rss/index.tsx";
import * as $sitemap_index from "./routes/sitemap/index.tsx";
import * as $Counter from "./islands/Counter.tsx";
import * as $ProjectCard from "./islands/ProjectCard.tsx";
import { type Manifest } from "$fresh/server.ts";
@@ -28,6 +30,8 @@ const manifest = {
"./routes/posts/[id].tsx": $posts_id_,
"./routes/posts/index.tsx": $posts_index,
"./routes/projects/index.tsx": $projects_index,
"./routes/rss/index.tsx": $rss_index,
"./routes/sitemap/index.tsx": $sitemap_index,
},
islands: {
"./islands/Counter.tsx": $Counter,

View File

@@ -0,0 +1,3 @@
export function handler(req: Request): Response {
return Response.redirect(`${Deno.env.get("RSS_URI")}`, 307);
}

View File

@@ -0,0 +1,3 @@
export function handler(req: Request): Response {
return Response.redirect(`${Deno.env.get("SITEMAP_URI")}`, 307);
}