Skip to content

Commit b105465

Browse files
authored
chore: fix 404 page (#133)
1 parent 32c5269 commit b105465

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

doc/app.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ handlers:
1010
upload: public/(.*)
1111
- url: /
1212
static_dir: public/
13-
13+
- url: /.*
14+
static_files: public/404.html
15+
upload: public/404.html
16+
error_code: 404

doc/layouts/404.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{{ define "main" }}
2-
<h1>Page not found</h1>
2+
<header>
3+
<span class="content">
4+
<h1>Page not found</h1>
5+
</span>
6+
</header>
7+
<main>
38

4-
I'm sorry, but the requested page wasn’t found on the server.
9+
<div class="content">
10+
<p>I'm sorry, but the requested page wasn’t found on the server. Try going back to the <a href="{{ "" | relURL }}">home page</a>.</p>
11+
</div>
12+
</main>
513
{{ end }}

0 commit comments

Comments
 (0)