[^] upd: Update 404

This commit is contained in:
Zhai2333 2019-08-28 15:37:08 +08:00 committed by panr
parent 1a47dec920
commit 11074eeb07
4 changed files with 4 additions and 10 deletions

View File

@ -114,6 +114,8 @@ paginate = 5
menuMore = "Show more" menuMore = "Show more"
readMore = "Read more" readMore = "Read more"
readOtherPosts = "Read other posts" readOtherPosts = "Read other posts"
missingContentMessage = "Page not found."
missingBackButtonLabel = "Go Back"
[languages.en.params.logo] [languages.en.params.logo]
logoText = "Terminal" logoText = "Terminal"

View File

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

View File

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

View File

@ -3,8 +3,8 @@
<h1 class="post-title">404!</h1> <h1 class="post-title">404!</h1>
<div class="post-content"> <div class="post-content">
{{ i18n "404-text" }}<br> {{ .Site.Params.missingContentMessage }}<br>
<a href="{{ "/" | absURL }}">{{ i18n "404-link" }}&nbsp;</a> <a href="{{ "/" | absURL }}">{{ .Site.Params.missingBackButtonLabel }}&nbsp;</a>
</div> </div>
</div> </div>