added routes for rss, sitemap, updated footer
This commit is contained in:
@@ -9,7 +9,7 @@ export default function Footer() {
|
|||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<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]"
|
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">
|
<div class="flex items-center gap-2">
|
||||||
<hi.HiOutlineRss />
|
<hi.HiOutlineRss />
|
||||||
@@ -18,7 +18,7 @@ export default function Footer() {
|
|||||||
</a>
|
</a>
|
||||||
<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]"
|
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">
|
<div class="flex items-center gap-2">
|
||||||
<hi.HiOutlineMap />
|
<hi.HiOutlineMap />
|
||||||
|
@@ -12,6 +12,8 @@ import * as $index from "./routes/index.tsx";
|
|||||||
import * as $posts_id_ from "./routes/posts/[id].tsx";
|
import * as $posts_id_ from "./routes/posts/[id].tsx";
|
||||||
import * as $posts_index from "./routes/posts/index.tsx";
|
import * as $posts_index from "./routes/posts/index.tsx";
|
||||||
import * as $projects_index from "./routes/projects/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 $Counter from "./islands/Counter.tsx";
|
||||||
import * as $ProjectCard from "./islands/ProjectCard.tsx";
|
import * as $ProjectCard from "./islands/ProjectCard.tsx";
|
||||||
import { type Manifest } from "$fresh/server.ts";
|
import { type Manifest } from "$fresh/server.ts";
|
||||||
@@ -28,6 +30,8 @@ const manifest = {
|
|||||||
"./routes/posts/[id].tsx": $posts_id_,
|
"./routes/posts/[id].tsx": $posts_id_,
|
||||||
"./routes/posts/index.tsx": $posts_index,
|
"./routes/posts/index.tsx": $posts_index,
|
||||||
"./routes/projects/index.tsx": $projects_index,
|
"./routes/projects/index.tsx": $projects_index,
|
||||||
|
"./routes/rss/index.tsx": $rss_index,
|
||||||
|
"./routes/sitemap/index.tsx": $sitemap_index,
|
||||||
},
|
},
|
||||||
islands: {
|
islands: {
|
||||||
"./islands/Counter.tsx": $Counter,
|
"./islands/Counter.tsx": $Counter,
|
||||||
|
3
frontend/routes/rss/index.tsx
Normal file
3
frontend/routes/rss/index.tsx
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export function handler(req: Request): Response {
|
||||||
|
return Response.redirect(`${Deno.env.get("RSS_URI")}`, 307);
|
||||||
|
}
|
3
frontend/routes/sitemap/index.tsx
Normal file
3
frontend/routes/sitemap/index.tsx
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export function handler(req: Request): Response {
|
||||||
|
return Response.redirect(`${Deno.env.get("SITEMAP_URI")}`, 307);
|
||||||
|
}
|
Reference in New Issue
Block a user