[+] add: 404 Page

This commit is contained in:
Zhai2333 2019-06-09 17:52:52 +08:00 committed by panr
parent bb19133255
commit 1a47dec920
3 changed files with 19 additions and 0 deletions

4
i18n/en.toml Normal file
View File

@ -0,0 +1,4 @@
[404-text]
other = "404 Not Found."
[404-link]
other = "Go Back"

4
i18n/zh-CN.toml Normal file
View File

@ -0,0 +1,4 @@
[404-text]
other = "文件找不到了。"
[404-link]
other = "返回"

11
layouts/404.html Normal file
View 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" }}&nbsp;</a>
</div>
</div>
{{ end }}