added blog to main page

This commit is contained in:
2026-01-29 19:27:42 +01:00
parent b1649f5911
commit b98ebb173c
5 changed files with 20 additions and 7 deletions

View File

@@ -6,7 +6,8 @@
import LinkList from "$lib/lists/link-list.svelte";
import { quotes, type Quote } from "./quotes";
import { posts } from "./projects/projectn5/devlog/posts";
import { posts as devlogPosts } from "./projects/projectn5/devlog/posts";
import { posts as blogPosts } from "./blog/posts";
let meImg: string = $state("common/me/a.webp");
let marqueeQuote: Quote = $state({
@@ -14,7 +15,8 @@
content: "",
source: "",
});
let latestDevlogDate = posts.values().next().value?.date ?? "could not fetch";
let latestDevlogDate = devlogPosts.values().next().value?.date ?? "could not fetch";
let latestBlogDate = blogPosts.values().next().value?.date ?? "could not fetch";
const galleryEntries: GalleryEntry[] = [
{
@@ -31,6 +33,13 @@
imgAlt: "A collage of multiple projects: the Unity default third-person character and CJ from GTA San Andreas in the top left; purple protagonist from Project N5 holding a massive rocket launcher in the top right; two wizards in the bottom left; a breadboard with a microcontroller and input components in the bottom right",
link: "projects",
},
{
title: "Blog",
subtitle: `A place where I write about random things. <i>latest post: ${latestBlogDate}</i>`,
img: "blog/robert.webp",
imgAlt: "View at a tram bridge rising and then curving to the left.",
link: "blog",
},
{
title: "Files",
subtitle: "find things I've put for download on my copyparty instance",