[+] add: 404 Page
This commit is contained in:
parent
83381f44e1
commit
fda8cb9d20
4
i18n/en.toml
Normal file
4
i18n/en.toml
Normal file
@ -0,0 +1,4 @@
|
||||
[404-text]
|
||||
other = "404 Not Found."
|
||||
[404-link]
|
||||
other = "Go Back"
|
4
i18n/zh-CN.toml
Normal file
4
i18n/zh-CN.toml
Normal file
@ -0,0 +1,4 @@
|
||||
[404-text]
|
||||
other = "文件找不到了。"
|
||||
[404-link]
|
||||
other = "返回"
|
11
layouts/404.html
Normal file
11
layouts/404.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
<div class="post">
|
||||
<h1 class="post-title">404!</h1>
|
||||
|
||||
<div class="post-content">
|
||||
{{ i18n "404-text" }}<br>
|
||||
<a href="{{ "/" | absURL }}">{{ i18n "404-link" }} →</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user