Upgrade to Astro v5.10.0
All checks were successful
Docker / build-and-push-image (push) Successful in 1m27s

This commit is contained in:
Troy 2025-06-20 10:56:34 +01:00
parent 24da21aa6f
commit c1826e1d6b
Signed by: troy
GPG key ID: DFC06C02ED3B4711
9 changed files with 114 additions and 98 deletions

View file

@ -74,7 +74,7 @@ if (article.data.extraAuthors && article.data.extraAuthors.length !== 0) {
isPost ? (
<>
<Icon name="mdi:timer" />
<p>{readingTime(article.body)}</p>
<p>{readingTime(article.body)} mins</p>
</>
) : null
}

View file

@ -29,6 +29,7 @@ const { interval = 3000, images } = Astro.props;
alt={`Slide ${index + 1}`}
class="h-full w-full rounded-sm object-cover transition-all duration-300 group-hover:brightness-50"
loading="eager"
{...(index === 0 && { priority: true })}
/>
<div class="relative opacity-0 transition-all delay-100 duration-300 ease-in-out group-hover:opacity-100">
<p class="absolute right-5 bottom-5 font-medium text-white">

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

View file

@ -30,6 +30,8 @@ A Long Way Down is a short, atmospheric linear adventure created alongside my fr
<source src={alongwaydown_demo_walkthrough} type="video/webm" />
</video>
![A Long Way Down Title sequence](250613_09-34-44.jpg)
<Gallery
items={[
{ src: image1, alt: "A Long Way Down Intro Showcase" },

View file

@ -10,7 +10,7 @@ export function readingTime(html: string) {
const textOnly = html.replace(/<[^>]+>/g, "");
const wordCount = textOnly.split(/\s+/).length;
const readingTimeMinutes = (wordCount / 200 + 1).toFixed();
return `${wordCount} words (${readingTimeMinutes} mins)`;
return readingTimeMinutes;
}
export function dateRange(startDate: Date, endDate?: Date | string): string {

View file

@ -24,11 +24,20 @@ const projects = [
description:
"A fast-paced first person shooter set following the realization that youre all out of beans. The problem is, youre nearing the end of cooking all the other items and you cant just not have them. Without beans, the day just wont be started off right.",
tags: ["Godot", "Blender", "GIMP", "Steamworks"],
link: "https://troylusty.com/projects/must-find-beans",
link: "/projects/must-find-beans",
done: false,
},
{
id: 2,
name: "Sinkie Soldiers",
description:
"Keep control of the castle, but more importantly: your armour.",
tags: ["Unreal Engine", "Blender", "GIMP", "FL Studio", "Inkscape"],
link: "/projects/sinkie-soldiers",
done: true,
},
{
id: 3,
name: "troylusty.com",
description:
"My personal website made using Astro as a way to show off my portfolio of work and display blog posts.",
@ -43,21 +52,21 @@ const projects = [
done: true,
},
{
id: 3,
id: 4,
name: "Artwork",
description:
"A collection of digital artwork created with a variety of tools.",
tags: ["Blender", "Cinema 4D", "DaVinci Resolve"],
link: "https://troylusty.com/projects",
link: "/projects",
done: true,
},
{
id: 4,
id: 5,
name: "Packard",
description:
"Packard is a simple terminal based RSS aggregator meant to allow you to take a quick glance at whats occurring in topics you care about.",
tags: ["Rust", "Tokio", "Clap", "NixOS Flake"],
link: "https://troylusty.com/projects/packard",
link: "/projects/packard",
done: true,
},
];