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:
64 files changed
+9066
No files matched your search
@@ -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('/')}`;
|
||||
}
|
||||
Reference in new issue
Block a user