WebsiteFluffy/src/pages/projects/index.astro
Fluffy-Bean b22adbda96 Add timestamps to posts
Redesign homebutton a bit
arugh
Clean up Card stuff
2024-05-26 21:56:50 +01:00

25 lines
597 B
Text

---
import { getPosts } from "../../utils";
import Layout from "../../layouts/Layout.astro";
import Card from "../../components/Card.astro";
import HomeButton from "../../components/HomeButton.astro";
const projects = await getPosts("projects");
---
<Layout title="Leggy Land - All Projects">
<HomeButton />
<div class="header">
<h1>All Projects</h1>
<p>Come back next week for 4 new projects!</p>
</div>
<hr>
<ul role="list" class="project-list">
{projects.map(post => (
<Card {post} base="/projects"/>
))}
</ul>
</Layout>