feat: create separated rss feeds
All checks were successful
Docker / build-and-push-image (push) Successful in 2m11s
All checks were successful
Docker / build-and-push-image (push) Successful in 2m11s
This commit is contained in:
parent
4f9ebdcc66
commit
782bfc7c90
10 changed files with 86 additions and 6 deletions
|
@ -3,6 +3,7 @@ import { getCollection } from "astro:content";
|
|||
import { PROJECTS, SITE } from "@consts";
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import ShowcaseProject from "@components/ShowcaseProject.astro";
|
||||
import Link from "@components/Link.astro";
|
||||
|
||||
const projects = (await getCollection("projects"))
|
||||
.filter((project) => !project.data.draft)
|
||||
|
@ -18,4 +19,11 @@ const projects = (await getCollection("projects"))
|
|||
>
|
||||
{projects.map((article: any) => <ShowcaseProject collection={article} />)}
|
||||
</ol>
|
||||
<div class="flex justify-end">
|
||||
<Link
|
||||
href="/projects.xml"
|
||||
class="text-tertiary hover:text-secondary text-xs transition-colors duration-300"
|
||||
>View projects feed</Link
|
||||
>
|
||||
</div>
|
||||
</Layout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue