mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-08-17 23:58:28 +02:00
* Create 404.html * Update 404.html * Update 404.html * try nightly * Update 404.html * fix styling * fix more styling with links * Handle both github pages and non-github ones * test fixing styles using relative links in 404 * update a bunch of other stuff including relative js path
12 lines
436 B
HTML
12 lines
436 B
HTML
<script>
|
|
// This is an adaption of https://github.com/jimporter/mike/issues/72#issuecomment-1545646389;
|
|
// but simplified - just redirect to the stable 404.
|
|
// This is needed because otherwise, stuff like Cloudflare Pages will redirect endlessly.
|
|
|
|
if (window.location.pathname.startsWith("/bottom")) {
|
|
window.location.href = "/bottom/stable/404.html";
|
|
} else {
|
|
window.location.href = "/stable/404.html";
|
|
}
|
|
</script>
|