Add 404 page

This commit is contained in:
Ben Wilson
2022-06-27 17:00:47 +01:00
parent f60b84f1c7
commit 022662632d
2 changed files with 16 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ pages:
- ./bin/generate_images_table.py
- ./bin/generate_kernel_stats.py
- mkdir -p ./public/
- cp ./.gitlab/404.html ./public/
- cp ./.gitlab/public.css ./public/
- pandoc -s ./.gitlab/www.md -o ./public/index.html -c public.css
- pandoc -s ./device-stats.md -o ./public/device-stats.html -c public.css

15
.gitlab/404.html Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<body onload="redirect()">
<h1>404 - Redirecting to https://arm.kali.org/</h1>
<script>
function redirect() {
location.replace("https://arm.kali.org/")
// location.replace('https://web.archive.org/web/*/https://arm.kali.org'+window.location.pathname+'*')
}
</script>
</body>
</html>