Skip to content

Commit 1d8a2f4

Browse files
committed
💤 redirect README.md to index.html
1 parent f78ee0d commit 1d8a2f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

_data.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
// README.md -> index.html
3+
export function url(page: Page) {
4+
if (page.src.path.endsWith("README")) {
5+
return page.src.path.replace("README", "index") + ".html";
6+
} else {
7+
return;
8+
}
9+
}

0 commit comments

Comments
 (0)