Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorotis <xiaohei.zyx@gmail.com>2019-11-21 09:47:36 +0300
committerotis <xiaohei.zyx@gmail.com>2019-11-21 09:47:36 +0300
commit244fab7158b0fddeeb4408bf23aa3db1cd383546 (patch)
treef4e0dd13e1f74bbb662c0600686d01c90f4fb095
parentea03d008ec70c1aa2dae10696d776f20dfe9b534 (diff)
add 404 zh translation & some refactor
-rw-r--r--i18n/zh.yaml9
-rw-r--r--layouts/404.html65
2 files changed, 40 insertions, 34 deletions
diff --git a/i18n/zh.yaml b/i18n/zh.yaml
index 364740b..755094a 100644
--- a/i18n/zh.yaml
+++ b/i18n/zh.yaml
@@ -166,4 +166,11 @@ insight_categories:
insight_tags:
other: 标签
insight_untitled:
- other: (未命名) \ No newline at end of file
+ other: (未命名)
+
+page_not_found_heading:
+ other: 404 Not Found
+page_not_found_body:
+ other: 找不到页面啦~请换个姿势( ̄. ̄)
+page_not_found_back:
+ other: 返回首页
diff --git a/layouts/404.html b/layouts/404.html
index 547e16e..0c944d0 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,34 +1,33 @@
{{- define "content" }}
- <main class="main" role="main">
- <div class="content">
- <article class="article">
- <div class="article-header">
- <h1 class="article-title" itemprop="name">
- <a href="#">{{ T "page_not_found_heading" }}</a>
- </h1>
- </div>
- <div class="article-meta">
- {{ .Scratch.Set "class_name" "article-date" }}
- {{- partial "post/date.html" . }}
- {{- partial "post/category.html" . }}
- {{- partial "post/tag.html" . }}
- {{- partial "post/pv.html" . }}
- <span class="post-comment"><i class="icon icon-comment"></i> <a href="{{ .RelPermalink }}#comments" class="article-comment-link">{{T "article_comments" }}</a></span>
- {{- partial "post/wc.html" . }}
- </div>
- <div class="article-entry marked-body" itemprop="articleBody">
- <br>
- <p>{{ T "page_not_found_body" }}</p>
- <a href="/">{{ T "page_not_found_back" }}</a>
- </div>
- {{- with .Site.Params.enablePostCopyright }}
- <div class="article-footer">
- {{- partial "post/copyright.html" . }}
- </div>
- {{- end }}
- </article>
- {{- partial "post/comment.html" . }}
- </div>
- {{- partial "post/donate.html" . }}
- </main>
-{{- end -}}
+<main class="main" role="main">
+ <div class="content">
+ <article class="article">
+ <div class="article-header">
+ <h1 class="article-title" itemprop="name">
+ <a href="#">{{ T "page_not_found_heading" }}</a>
+ </h1>
+ </div>
+ <div class="article-meta">
+ {{ .Scratch.Set "class_name" "article-date" }}
+ {{- partial "post/date.html" . }}
+ {{- partial "post/category.html" . }}
+ {{- partial "post/tag.html" . }}
+ {{- partial "post/pv.html" . }}
+ <span class="post-comment"><i class="icon icon-comment"></i> <a href="{{ .RelPermalink }}#comments"
+ class="article-comment-link">{{T "article_comments" }}</a></span>
+ {{- partial "post/wc.html" . }}
+ </div>
+ <div class="article-entry marked-body" itemprop="articleBody">
+ <br>
+ <p>{{ T "page_not_found_body" }}</p>
+ <a href="/">{{ T "page_not_found_back" }}</a>
+ </div>
+ <div class="article-footer">
+ {{- partial "post/copyright.html" . }}
+ </div>
+ </article>
+ {{- partial "post/comment.html" . }}
+ </div>
+ {{- partial "post/donate.html" . }}
+</main>
+{{- end -}} \ No newline at end of file