Compare commits

...
2 Commits
Author SHA1 Message Date
encie22 809e51bae0 Fix whitespace issues due to JSX whitespace change, small deploy improvements
Build and Deploy to Web Server / deploy (push) Successful in 10m18s
2026-10-16 14:47:11 +10:30
encie22 70bf783ca8 Hide duplicated awards from accessibility readers, disallow API routes, fix footer re-run
Build and Deploy to Web Server / deploy (push) Successful in 10m25s
2026-10-16 13:24:08 +10:30
8 changed files with 46 additions and 17 deletions

No files matched your search

+8 -2
View File
@@ -22,7 +22,9 @@ jobs:
path: |
node_modules/.astro/
node_modules/.vite/
key: ${{ runner.os }}-buildcache
key: ${{ runner.os }}-buildcache-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-buildcache-
- name: Setup Node
uses: actions/setup-node@v5
@@ -33,11 +35,15 @@ jobs:
- name: Install
shell: "bash"
working-directory: .
run: npm install
run: npm ci
- name: Build
shell: "bash"
working-directory: .
env:
# Bound libuv/sharp thread usage: the builder is small and
# full parallelism OOMs it. Raise if the host grows.
UV_THREADPOOLSIZE: 4
run: npm run build
- name: Set up SSH
+14 -1
View File
@@ -32,7 +32,20 @@ export default defineConfig({
}
},
integrations: [icon(), mdx(), sitemap(), robotsTxt()],
integrations: [
icon(),
mdx(),
sitemap(),
robotsTxt({
policy: [
{
userAgent: "*",
allow: "/",
disallow: "/api/"
}
]
})
],
markdown: {
shikiConfig: {
+4 -2
View File
@@ -62,6 +62,8 @@ import TextLink from "@components/TextLink.astro";
</footer>
<script is:inline data-astro-rerun>
const year = document.getElementById("footer-year");
if (year) year.innerText = new Date().getFullYear();
{
const year = document.getElementById("footer-year");
if (year) year.innerText = new Date().getFullYear();
}
</script>
+6 -4
View File
@@ -171,12 +171,14 @@ const playerArtworkOpacity = 0.4;
</span>
</div>
</div>
<div class="flex flex-grow flex-col text-sm">
<div class="flex min-w-0 flex-grow flex-col text-sm">
<span
id="player:metadata:title"
class="w-full text-right font-semibold"></span>
<span id="player:metadata:subtitle" class="w-full text-right"></span>
<span id="player:metadata:extra" class="w-full text-right"></span>
class="w-full truncate text-right font-semibold"></span>
<span id="player:metadata:subtitle" class="w-full truncate text-right"
></span>
<span id="player:metadata:extra" class="w-full truncate text-right"
></span>
</div>
</div>
</div>
+1 -1
View File
@@ -171,7 +171,7 @@ const link = `/projects/${slugify(project.data.type)}/${slugify(project.data.slu
{project.data.keyFigure.map((figure) => {
return (
<div>
<span class="font-bold">{figure.title}:</span>
<span class="font-bold">{figure.title}: </span>
<span>
{figure.href && (
<TextLink href={figure.href}>{figure.name}</TextLink>
+1 -1
View File
@@ -26,7 +26,7 @@ import MainHead from "@layouts/MainHead.astro";
<!doctype html>
<html lang="en">
<MainHead {title} {subtitle} {description} {image} />
<body class="flex min-h-svh flex-col">
<body class="flex min-h-svh flex-col overflow-x-clip">
<Navbar {navbarDisplay} />
<main class="grow bg-white dark:bg-gray-950">
<slot />
+11 -5
View File
@@ -53,7 +53,7 @@ const tracks = (
---
<MainLayout navbarDisplay="transparent">
<div class="h-screen w-full flex-row">
<div class="min-h-svh w-full flex-row">
<div class="absolute inset-0 h-full w-full bg-black">
<ImageCarousel
id="hero"
@@ -68,8 +68,7 @@ const tracks = (
<h1
class="font-header pb-8 text-5xl font-medium text-white uppercase text-shadow-lg/75 md:text-7xl lg:text-9xl"
>
{person.names.first}
{person.names.last}
{person.names.first}{" "}{person.names.last}
</h1>
<h2
class="font-header text-2xl font-medium text-gray-300 uppercase text-shadow-lg/75 md:text-2xl lg:text-4xl"
@@ -186,8 +185,15 @@ const tracks = (
class="animate-scrolling-awards m-0 mx-auto flex max-w-md flex-col space-y-8 p-0"
>
{
awardsDoubled.map((award) => {
return <AwardCard award={award} />;
awardsDoubled.map((award, index) => {
// Second copy only feeds the scrolling loop: hide it from assistive tech so awards are not announced twice.
return index < awards.length ? (
<AwardCard award={award} />
) : (
<span aria-hidden="true" class="block">
<AwardCard award={award} />
</span>
);
})
}
</div>
+1 -1
View File
@@ -94,7 +94,7 @@ import P from "@components/MDX/P.astro";
{project.data.keyFigure.map((figure) => {
return (
<div>
<span class="font-bold">{figure.title}:</span>
<span class="font-bold">{figure.title}: </span>
<span>
{figure.href && (
<TextLink href={figure.href}>