Mirror to Gitea / mirror (push) Skipped
Each page now has its own look drawn from print and retro-tech references: magazine-cover home, subway-map work index, technical-poster project pages, 90s-desktop blog, radio-flyer music page, 80s wireframe 3D page, garden about page and postcard contact form. A shared subway-line color system ties sections and project categories together. Replace themed copy with standard wording (Work, Blog, Music, 3D, About, Contact; Selected work, Experience, Get in touch). Rename /log to /blog and /sound to /music with redirects.
12 lines
484 B
TypeScript
12 lines
484 B
TypeScript
/**
|
|
* 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('music/demo.mp3') -> '/media/music/demo.mp3'
|
|
*/
|
|
export function media(path: string): string {
|
|
if (/^https?:\/\//.test(path)) return path;
|
|
return `/media/${path.replace(/^\/+/, '').split('/').map(encodeURIComponent).join('/')}`;
|
|
}
|