Initial portfolio site
Mirror to Gitea / mirror (push) Skipped

Astro + React islands + MDX with a theme system (terminal, concrete,
nostromo, overgrowth), USMT Dash case study, work/log/sound/models/about/
contact pages, RSS, self-hosted contact form over SMTP, /media proxy to
Nextcloud, Dockerfile for Coolify, and a GitHub Action that mirrors main
to Gitea.
This commit is contained in:
Johan Sandoval committed 2026-10-08 14:41:39 +00:00
commit b2cd67e74f
64 files changed
+9066

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
/**
* Large files (audio, video, game builds, 3D models, the résumé) live on the
* NAS in Nextcloud, not in git. They're served through this site's /media/*
* proxy so URLs stay on yoyos.sh and headers can be set per file type.
*
* media('sound/demo.mp3') -> '/media/sound/demo.mp3'
*/
export function media(path: string): string {
if (/^https?:\/\//.test(path)) return path;
return `/media/${path.replace(/^\/+/, '').split('/').map(encodeURIComponent).join('/')}`;
}