deploy: static pages

This commit is contained in:
Colin
2026-08-03 17:22:49 +08:00
commit 269bb64bc8
4013 changed files with 1319596 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
/**
* Removes everything after the last "/", but leaves the slash.
*/
export default function stripFilename(path: string | undefined | null): string {
if (!path) return '';
const index = path.lastIndexOf('/');
return path.slice(0, index + 1);
}