mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2025-03-15 02:39:06 +03:00
[+] add: 404 Page
This commit is contained in:
parent
bb19133255
commit
1a47dec920
3 changed files with 19 additions and 0 deletions
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…
Add table
Reference in a new issue