diff --git a/i18n/en.yaml b/i18n/en.yaml
index 0777a9b..385a4b7 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -71,40 +71,30 @@ PostArchiveCheersExcellent:
PostArchiveKeepOn:
other: Keep on posting.╰(*°▽°*)╯
-PostStickyTitle:
- other: Strickys
-PostPublishDate:
- other: "Publish on"
-PostPublishTime:
- other: "Create Time"
-PostLastModDate:
- other: "Update on"
-PostLastModTime:
- other: "Modify Time"
-PostCategory:
- other: "Classify at"
-PostWords:
- other: "Words"
-PostWordCount:
- other: "{{- .WordCount -}}"
-PostReading:
- other: "Read"
-PostReadTime:
- other: "{{- .ReadingTime -}}min"
-PostViews:
- other: "Views"
-PostComments:
- other: "Comments"
-PostTag:
- other: "Tags"
-PostReadMore:
- other: "Read More"
-PostEditTitle:
- other: Edit this post
+PostMeta:
+ sticky: Stickys
+ publish:
+ date: "Publish on"
+ time: "Create Time"
+ lastmod:
+ date: "Update on"
+ time: "Modify Time"
+ category: "Classify at"
+ words:
+ title: Words
+ count: "{{- .WordCount -}}"
+ reading:
+ title: Read
+ time: "{{- .ReadingTime -}}mins"
+ views: Views
+ comments: Comments
+ tags: Tags
+ more: "Read More"
+ edit: "Edit this post"
Reward:
title: Donate
- wechatpay: Wechat Pay
+ wechatpay: WechatPay
alipay: Alipay
paypal: Paypal
bitcoin: Bitcoin
diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml
index 72a4882..6bfcad8 100644
--- a/i18n/zh-cn.yaml
+++ b/i18n/zh-cn.yaml
@@ -72,36 +72,26 @@ PostArchiveCheersExcellent:
PostArchiveKeepOn:
other: 继续努力哟。╰(*°▽°*)╯
-PostStickyTitle:
- other: 置顶
-PostPublishDate:
- other: 发表于
-PostPublishTime:
- other: 创建时间
-PostLastModDate:
- other: 更新于
-PostLastModTime:
- other: 修改时间
-PostCategory:
- other: "分类于"
-PostWords:
- other: 字数
-PostWordCount:
- other: "{{- .WordCount -}}"
-PostReading:
- other: 阅读
-PostReadTime:
- other: "{{- .ReadingTime -}}分钟"
-PostViews:
- other: 浏览
-PostComments:
- other: 评论
-PostTags:
- other: 标签
-PostReadMore:
- other: 阅读全文
-PostEditTitle:
- other: 编辑
+PostMeta:
+ sticky: 置顶
+ publish:
+ date: 发表于
+ time: 创建时间
+ lastmod:
+ date: 更新于
+ time: 修改时间
+ category: 分类于
+ words:
+ title: 字数
+ count: "{{- .WordCount -}}"
+ reading:
+ title: 阅读
+ time: "{{- .ReadingTime -}}分钟"
+ views: 浏览
+ comments: 评论
+ tags: 标签
+ more: 阅读全文
+ edit: 编辑
Reward:
title: 赞赏
diff --git a/layouts/partials/post/footer.html b/layouts/partials/post/footer.html
index 4cf58fc..5995722 100644
--- a/layouts/partials/post/footer.html
+++ b/layouts/partials/post/footer.html
@@ -3,7 +3,7 @@
{{ if and .Site.Params.readMoreBtn (not .Params.Expand) }}
{{ end }}
diff --git a/layouts/partials/post/header.html b/layouts/partials/post/header.html
index 1739ce8..39096f0 100644
--- a/layouts/partials/post/header.html
+++ b/layouts/partials/post/header.html
@@ -1,7 +1,7 @@
{{ with .ctx }}
{{ if $.IsHome }}
{{ if and .Weight (gt .Weight 0) }}
-
+
{{ end }}
@@ -18,7 +18,7 @@
{{ .Title }}
{{ if .Site.Params.postEdit.enable }}
{{ $editURL := printf "%s%s" .Site.Params.postEdit.url (path.Clean .File.Path) }}
-
+
{{ end }}
{{ end }}
{{ if $.IsHome }}
{{ else }} {{ end }}
diff --git a/layouts/partials/post/header_meta/categories.html b/layouts/partials/post/header_meta/categories.html
index fe3783b..5682800 100644
--- a/layouts/partials/post/header_meta/categories.html
+++ b/layouts/partials/post/header_meta/categories.html
@@ -4,7 +4,9 @@
- {{ print (T "PostCategory") (T "SymbolColon") }}
+
+ {{ print (T "PostMeta.category") (T "SymbolColon") }}
+
{{ range (first 1 .) }}
diff --git a/layouts/partials/post/header_meta/comments.html b/layouts/partials/post/header_meta/comments.html
index 2e54dd0..bc0b345 100644
--- a/layouts/partials/post/header_meta/comments.html
+++ b/layouts/partials/post/header_meta/comments.html
@@ -2,8 +2,8 @@
-
- {{ print (T "PostComments") (T "SymbolColon") }}
+
+ {{ print (T "PostMeta.comments") (T "SymbolColon") }}
diff --git a/layouts/partials/post/header_meta/created_date.html b/layouts/partials/post/header_meta/created_date.html
index 23c8ed8..64ce274 100644
--- a/layouts/partials/post/header_meta/created_date.html
+++ b/layouts/partials/post/header_meta/created_date.html
@@ -5,8 +5,10 @@
- {{ print (T "PostPublishDate") (T "SymbolColon") }}
-
diff --git a/layouts/partials/post/header_meta/readtime.html b/layouts/partials/post/header_meta/readtime.html
index 40dfd62..0addafd 100644
--- a/layouts/partials/post/header_meta/readtime.html
+++ b/layouts/partials/post/header_meta/readtime.html
@@ -1,9 +1,9 @@
{{ if .Site.Params.postMeta.readTime }}
-
+
- {{ print (T "PostReading") (T "SymbolColon") }}≈
- {{ T "PostReadTime" . }}
+ {{ print (T "PostMeta.reading.title") (T "SymbolColon") }}≈
+ {{ T "PostMeta.reading.time" . }}
{{ end }}
diff --git a/layouts/partials/post/header_meta/update_date.html b/layouts/partials/post/header_meta/update_date.html
index 6eab87b..6d455c5 100644
--- a/layouts/partials/post/header_meta/update_date.html
+++ b/layouts/partials/post/header_meta/update_date.html
@@ -5,8 +5,10 @@
- {{ print (T "PostLastModDate") (T "SymbolColon") }}
- {{ .Lastmod.Format .Site.Params.dateFormat }}
+
+ {{ print (T "PostMeta.lastmod.date") (T "SymbolColon") }}
+
+ {{ .Lastmod.Format .Site.Params.dateFormat }}
{{ end }}
{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/post/header_meta/views.html b/layouts/partials/post/header_meta/views.html
index a2b2c16..0204a3b 100644
--- a/layouts/partials/post/header_meta/views.html
+++ b/layouts/partials/post/header_meta/views.html
@@ -5,12 +5,12 @@
{{ if .Site.Params.analytics.busuanzi.postViews }}
{{ $pageViewId = "busuanzi_value_page_pv" }}
{{ end }}
-
+
- {{ print (T "PostViews") (T "SymbolColon") }}
+ {{ print (T "PostMeta.views") (T "SymbolColon") }}
diff --git a/layouts/partials/post/header_meta/words.html b/layouts/partials/post/header_meta/words.html
index 8c06edd..3bec7df 100644
--- a/layouts/partials/post/header_meta/words.html
+++ b/layouts/partials/post/header_meta/words.html
@@ -1,8 +1,9 @@
{{ if .Site.Params.postMeta.wordCount }}
-
+
- {{ print (T "PostWords") (T "SymbolColon") }}{{ T "PostWordCount" . }}
+ {{ print (T "PostMeta.words.title") (T "SymbolColon") }}
+ {{ T "PostMeta.words.count" . }}
{{ end }}
\ No newline at end of file