This commit is contained in:
Ivy Turner 2025-05-05 15:55:53 +01:00
parent 5f63527955
commit f51dc7e078
No known key found for this signature in database
31 changed files with 331 additions and 88 deletions

View file

@ -10,12 +10,12 @@ export async function GET(context) {
const blog = await getCollection('blog');
return rss({
// `<title>` field in output xml
title: conf.site.title,
title: `${conf.site.title} blog`,
// `<description>` field in output xml
description: conf.site.description,
// Pull in your project "site" from the endpoint context
// https://docs.astro.build/en/reference/api-reference/#site
site: context.site,
site: context.site + "/blog",
stylesheet: "/feed.xsl",
// Array of `<item>`s in output xml
// See "Generating items" section for examples using content collections and glob imports

View file

@ -4,13 +4,17 @@ import BlogPostList from "~/components/lists/BlogPostList.astro";
import StyledLink from "~/components/util/StyledLink.astro";
---
<Page
title="Blog"
description="writing"
icon="fa-solid fa-signature"
>
<Page title="Blog" description="writing" icon="fa-solid fa-signature">
<StyledLink href="/blog/tags">See all the tags</StyledLink>
<StyledLink href="/blog/feed.xml" icon="fa-solid fa-rss">Subscribe via RSS</StyledLink>
<StyledLink
href="/blog/feed.xml"
icon="fa-solid fa-rss"
>
Subscribe via RSS
</StyledLink>
<div class="mb-4"></div>
<h3>Featured</h3>
<BlogPostList featured={true} />
<div class="mb-4"></div>
<BlogPostList />
</Page>

View file

@ -14,5 +14,5 @@ import LatestNotes from "~/components/home/LatestNotes.astro";
<LatestBlogPosts />
<LatestNotes />
</div>
<Footer />
</Layout>
<Footer />

46
src/pages/landing.astro Normal file
View file

@ -0,0 +1,46 @@
---
import Navigation from "~/components/ui/Navigation.astro";
import Base from "~/layouts/Base.astro";
import siteConfig from "~/site.config";
import Prose from "~/components/ui/Prose.astro";
import Image from "astro/components/Image.astro";
import { Content as Bio } from "~/content/bio.md";
---
<Base>
<div class="flex items-center flex-col">
<div
class="border-4 border-light-pu dark:border-dark-pu w-fit p-4 rounded-br-3xl rounded-tl-3xl"
>
<div>
<h1 class="font-bold text-3xl text-center">{siteConfig.site.title}</h1>
<Navigation />
</div>
</div>
<div
class="mt-4 border-4 border-light-pu dark:border-dark-pu w-fit p-4 rounded-br-3xl rounded-tl-3xl"
>
<h1
class="text-2xl font-bold underline decoration-wavy underline-offset-8 decoration-3 decoration-light-pu dark:decoration-dark-pu mb-6"
>
Hi! I'm Ivy, welcome to my website!
</h1>
<Prose>
<Bio />
</Prose>
<div class="mt-2 flex gap-2"></div>
</div>
<div>
<Image
src={"https://cdn.laker.tech/images/tree.png"}
alt={"tree"}
width={200}
height={300}
/>
</div>
</div>
</Base>

View file

@ -5,14 +5,12 @@ import others from "~/data/others.json";
---
<Page
title="Other people and sites I like"
title="Other people and places on the internet that I like"
description="also some webrings, wow!"
icon="fa-solid fa-users"
>
<h3>Friends</h3>
{others.friends.map((item) => {
switch (item.b) {
}
{others.friends.map(() => {
})}
</Page>

View file

@ -0,0 +1,24 @@
---
import Page from "~/layouts/Page.astro";
---
<Page title="Subscribe" description="hit that bell gamers" icon="fa-solid fa-rss">
<ul class="fa-ul mb-2">
<li class="mb-1">
<i class="fa-li fa-solid fa-signature"></i>
<b>Blog</b>:
<a class="link" href="/blog/feed.xml">RSS</a>
</li>
<li>
<i class="fa-li fa-solid fa-sticky-note"></i>
<b>Notes</b>:
<a class="link" href="/notes/feed.xml">RSS</a>
</li>
</ul>
<p>
I also post most of the stuff here on <a
href="https://social.lol/@ivy"
class="link">Mastodon</a
> & <a href="https://bsky.app/profile/ivy.rs" class="link">Bluesky</a>.
</p>
</Page>

View file

@ -34,9 +34,9 @@ function stripHtmlAndAddFootnotes(html) {
export async function GET(context) {
const blog = await getCollection('notes');
return rss({
title: conf.site.title,
title: `${conf.site.title} notes`,
description: conf.site.description,
site: context.site,
site: context.site + "notes",
// stylesheet: "/feed.xsl",
items: blog.map((post) => {
const contentWithFootnotes = stripHtmlAndAddFootnotes(parser.render(post.body));