44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
---
|
|
import { getCollection } from "astro:content";
|
|
import BaseHead from "../components/BaseHead.astro";
|
|
import Header from "../components/Header.astro";
|
|
import Footer from "../components/Footer.astro";
|
|
import HomePosts from "../components/HomePosts.astro";
|
|
import ColorScript from "../components/ColorScript.astro";
|
|
import Tags from "../components/Tags.astro";
|
|
import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
|
|
import { Content as About } from "./about.md";
|
|
import getTags from "../scripts/getTags";
|
|
|
|
const posts = await getCollection("posts");
|
|
const tags = getTags(posts);
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang="en-us">
|
|
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
|
<body>
|
|
<Header title={SITE_TITLE} />
|
|
<main>
|
|
<About />
|
|
|
|
<br />
|
|
|
|
<h3>Here's my most recent posts</h3>
|
|
|
|
<HomePosts allPosts={posts} />
|
|
|
|
<p class="center">
|
|
You can also <a href="https://blahg.netlify.app/rss.xml">
|
|
subscribe with RSS!
|
|
</a>
|
|
</p>
|
|
<br />
|
|
|
|
<Tags tags={tags} all />
|
|
</main>
|
|
<Footer />
|
|
<ColorScript />
|
|
</body>
|
|
</html>
|