This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push:
new e84318806c optimize 404 (#503)
e84318806c is described below
commit e84318806ce98ee0dacbe3d4293c13011ae10062
Author: Juntao Zhang <[email protected]>
AuthorDate: Mon Sep 12 12:13:03 2022 +0800
optimize 404 (#503)
---
layouts/404.html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/layouts/404.html b/layouts/404.html
index 8a45297c90..f06440e6b5 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,10 +1,4 @@
{{ define "main"}}
-<main id="main">
- <div class="mt-4 text-center">
- <h1 id="title">Not found</h1>
- <p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" |
relURL }}">home page</a>.</p>
- </div>
-</main>
<script>
var reg = /\/docs\/[a-zA-Z\-]+\/([\w|\.]+)\//;
var res = reg.exec(location.href);
@@ -14,4 +8,10 @@
window.location.href = newUrl
}
</script>
+<main id="main">
+ <div class="mt-4 text-center">
+ <h1 id="title">Not found</h1>
+ <p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" |
relURL }}">home page</a>.</p>
+ </div>
+</main>
{{ end }}