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) }}
- {{ T "PostReadMore" }} » + {{ T "PostMeta.more" }} »
{{ 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 .) }}