💄🔧 Update the post meta info.
This commit is contained in:
parent
85b7dc11ca
commit
dca196c315
52
i18n/en.yaml
52
i18n/en.yaml
@ -71,40 +71,30 @@ PostArchiveCheersExcellent:
|
|||||||
PostArchiveKeepOn:
|
PostArchiveKeepOn:
|
||||||
other: Keep on posting.╰(*°▽°*)╯
|
other: Keep on posting.╰(*°▽°*)╯
|
||||||
|
|
||||||
PostStickyTitle:
|
PostMeta:
|
||||||
other: Strickys
|
sticky: Stickys
|
||||||
PostPublishDate:
|
publish:
|
||||||
other: "Publish on"
|
date: "Publish on"
|
||||||
PostPublishTime:
|
time: "Create Time"
|
||||||
other: "Create Time"
|
lastmod:
|
||||||
PostLastModDate:
|
date: "Update on"
|
||||||
other: "Update on"
|
time: "Modify Time"
|
||||||
PostLastModTime:
|
category: "Classify at"
|
||||||
other: "Modify Time"
|
words:
|
||||||
PostCategory:
|
title: Words
|
||||||
other: "Classify at"
|
count: "{{- .WordCount -}}"
|
||||||
PostWords:
|
reading:
|
||||||
other: "Words"
|
title: Read
|
||||||
PostWordCount:
|
time: "{{- .ReadingTime -}}mins"
|
||||||
other: "{{- .WordCount -}}"
|
views: Views
|
||||||
PostReading:
|
comments: Comments
|
||||||
other: "Read"
|
tags: Tags
|
||||||
PostReadTime:
|
more: "Read More"
|
||||||
other: "{{- .ReadingTime -}}min"
|
edit: "Edit this post"
|
||||||
PostViews:
|
|
||||||
other: "Views"
|
|
||||||
PostComments:
|
|
||||||
other: "Comments"
|
|
||||||
PostTag:
|
|
||||||
other: "Tags"
|
|
||||||
PostReadMore:
|
|
||||||
other: "Read More"
|
|
||||||
PostEditTitle:
|
|
||||||
other: Edit this post
|
|
||||||
|
|
||||||
Reward:
|
Reward:
|
||||||
title: Donate
|
title: Donate
|
||||||
wechatpay: Wechat Pay
|
wechatpay: WechatPay
|
||||||
alipay: Alipay
|
alipay: Alipay
|
||||||
paypal: Paypal
|
paypal: Paypal
|
||||||
bitcoin: Bitcoin
|
bitcoin: Bitcoin
|
||||||
|
@ -72,36 +72,26 @@ PostArchiveCheersExcellent:
|
|||||||
PostArchiveKeepOn:
|
PostArchiveKeepOn:
|
||||||
other: 继续努力哟。╰(*°▽°*)╯
|
other: 继续努力哟。╰(*°▽°*)╯
|
||||||
|
|
||||||
PostStickyTitle:
|
PostMeta:
|
||||||
other: 置顶
|
sticky: 置顶
|
||||||
PostPublishDate:
|
publish:
|
||||||
other: 发表于
|
date: 发表于
|
||||||
PostPublishTime:
|
time: 创建时间
|
||||||
other: 创建时间
|
lastmod:
|
||||||
PostLastModDate:
|
date: 更新于
|
||||||
other: 更新于
|
time: 修改时间
|
||||||
PostLastModTime:
|
category: 分类于
|
||||||
other: 修改时间
|
words:
|
||||||
PostCategory:
|
title: 字数
|
||||||
other: "分类于"
|
count: "{{- .WordCount -}}"
|
||||||
PostWords:
|
reading:
|
||||||
other: 字数
|
title: 阅读
|
||||||
PostWordCount:
|
time: "{{- .ReadingTime -}}分钟"
|
||||||
other: "{{- .WordCount -}}"
|
views: 浏览
|
||||||
PostReading:
|
comments: 评论
|
||||||
other: 阅读
|
tags: 标签
|
||||||
PostReadTime:
|
more: 阅读全文
|
||||||
other: "{{- .ReadingTime -}}分钟"
|
edit: 编辑
|
||||||
PostViews:
|
|
||||||
other: 浏览
|
|
||||||
PostComments:
|
|
||||||
other: 评论
|
|
||||||
PostTags:
|
|
||||||
other: 标签
|
|
||||||
PostReadMore:
|
|
||||||
other: 阅读全文
|
|
||||||
PostEditTitle:
|
|
||||||
other: 编辑
|
|
||||||
|
|
||||||
Reward:
|
Reward:
|
||||||
title: 赞赏
|
title: 赞赏
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{ if and .Site.Params.readMoreBtn (not .Params.Expand) }}
|
{{ if and .Site.Params.readMoreBtn (not .Params.Expand) }}
|
||||||
<div class="post-button">
|
<div class="post-button">
|
||||||
<a class="btn" href="{{ .RelPermalink | relLangURL }}#more" rel="contents">
|
<a class="btn" href="{{ .RelPermalink | relLangURL }}#more" rel="contents">
|
||||||
{{ T "PostReadMore" }} »
|
{{ T "PostMeta.more" }} »
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{ with .ctx }}
|
{{ with .ctx }}
|
||||||
{{ if $.IsHome }} <h2 {{ else }} <h1 {{ end }} class="post-title" itemprop="name headline">
|
{{ if $.IsHome }} <h2 {{ else }} <h1 {{ end }} class="post-title" itemprop="name headline">
|
||||||
{{ if and .Weight (gt .Weight 0) }}
|
{{ if and .Weight (gt .Weight 0) }}
|
||||||
<span class="post-sticky-flag" title="{{ T "PostStickyTitle" }}">
|
<span class="post-sticky-flag" title="{{ T "PostMeta.sticky" }}">
|
||||||
<i class="fa fa-thumbtack"></i>
|
<i class="fa fa-thumbtack"></i>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@ -18,7 +18,7 @@
|
|||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
{{ if .Site.Params.postEdit.enable }}
|
{{ if .Site.Params.postEdit.enable }}
|
||||||
{{ $editURL := printf "%s%s" .Site.Params.postEdit.url (path.Clean .File.Path) }}
|
{{ $editURL := printf "%s%s" .Site.Params.postEdit.url (path.Clean .File.Path) }}
|
||||||
<a href="{{ $editURL }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-edit-link" title="{{ T "PostEditTitle" }}"><i class="fa fa-pen-nib"></i></a>
|
<a href="{{ $editURL }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-edit-link" title="{{ T "PostMeta.edit" }}"><i class="fa fa-pen-nib"></i></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $.IsHome }} </h2> {{ else }} </h1> {{ end }}
|
{{ if $.IsHome }} </h2> {{ else }} </h1> {{ end }}
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-folder-open"></i>
|
<i class="far fa-folder-open"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">{{ print (T "PostCategory") (T "SymbolColon") }}</span>
|
<span class="post-meta-item-text" title="{{ T "PostMeta.category" }}">
|
||||||
|
{{ print (T "PostMeta.category") (T "SymbolColon") }}
|
||||||
|
</span>
|
||||||
{{ range (first 1 .) }}
|
{{ range (first 1 .) }}
|
||||||
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
|
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
|
||||||
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" itemprop="url" rel="index">
|
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" itemprop="url" rel="index">
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-comments"></i>
|
<i class="far fa-comments"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">
|
<span class="post-meta-item-text" title="{{ T "PostMeta.comments" }}">
|
||||||
{{ print (T "PostComments") (T "SymbolColon") }}
|
{{ print (T "PostMeta.comments") (T "SymbolColon") }}
|
||||||
</span>
|
</span>
|
||||||
<span {{ with .Site.Params.waline.comment }}class="waline-comment-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
<span {{ with .Site.Params.waline.comment }}class="waline-comment-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
||||||
<i class="fa fa-sync fa-spin"></i>
|
<i class="fa fa-sync fa-spin"></i>
|
||||||
|
@ -5,8 +5,10 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-calendar"></i>
|
<i class="far fa-calendar"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">{{ print (T "PostPublishDate") (T "SymbolColon") }}</span>
|
<span class="post-meta-item-text" title="{{ T "PostMeta.publish.date" }}">
|
||||||
<time title="{{ print (T "PostPublishDate") (T "SymbolColon") }}{{ .Date }}" itemprop="dateCreated datePublished" datetime="{{ .Date }}">
|
{{ print (T "PostMeta.publish.date") (T "SymbolColon") }}
|
||||||
|
</span>
|
||||||
|
<time title="{{ print (T "PostMeta.publish.time") (T "SymbolColon") }}{{ .Date }}" itemprop="dateCreated datePublished" datetime="{{ .Date }}">
|
||||||
{{ .Date.Format .Site.Params.dateFormat }}
|
{{ .Date.Format .Site.Params.dateFormat }}
|
||||||
</time>
|
</time>
|
||||||
</span>
|
</span>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{{ if .Site.Params.postMeta.readTime }}
|
{{ if .Site.Params.postMeta.readTime }}
|
||||||
<span class="post-meta-item" title="{{ T "PostReading" }}">
|
<span class="post-meta-item" title="{{ T "PostMeta.reading.title" }}">
|
||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-clock"></i>
|
<i class="far fa-clock"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">{{ print (T "PostReading") (T "SymbolColon") }}≈</span>
|
<span class="post-meta-item-text">{{ print (T "PostMeta.reading.title") (T "SymbolColon") }}≈</span>
|
||||||
<span>{{ T "PostReadTime" . }}</span>
|
<span>{{ T "PostMeta.reading.time" . }}</span>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -5,8 +5,10 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-calendar-check"></i>
|
<i class="far fa-calendar-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">{{ print (T "PostLastModDate") (T "SymbolColon") }}</span>
|
<span class="post-meta-item-text" title="{{ T "PostMeta.lastmod.date" }}">
|
||||||
<time title="{{ print (T "PostLastModTime") (T "SymbolColon") }}{{ $modTime }}" itemprop="dateModified" datetime="{{ $modTime }}">{{ .Lastmod.Format .Site.Params.dateFormat }}</time>
|
{{ print (T "PostMeta.lastmod.date") (T "SymbolColon") }}
|
||||||
|
</span>
|
||||||
|
<time title="{{ print (T "PostMeta.lastmod.time") (T "SymbolColon") }}{{ $modTime }}" itemprop="dateModified" datetime="{{ $modTime }}">{{ .Lastmod.Format .Site.Params.dateFormat }}</time>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
@ -5,12 +5,12 @@
|
|||||||
{{ if .Site.Params.analytics.busuanzi.postViews }}
|
{{ if .Site.Params.analytics.busuanzi.postViews }}
|
||||||
{{ $pageViewId = "busuanzi_value_page_pv" }}
|
{{ $pageViewId = "busuanzi_value_page_pv" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="post-meta-item" title="{{ T "PostViews" }}">
|
<span class="post-meta-item" title="{{ T "PostMeta.views" }}">
|
||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-eye"></i>
|
<i class="far fa-eye"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">
|
<span class="post-meta-item-text">
|
||||||
{{ print (T "PostViews") (T "SymbolColon") }}
|
{{ print (T "PostMeta.views") (T "SymbolColon") }}
|
||||||
</span>
|
</span>
|
||||||
<span {{ with $pageViewId }}id="{{ . }}"{{end}} {{ with .Site.Params.waline.pageView }}class="waline-pageview-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
<span {{ with $pageViewId }}id="{{ . }}"{{end}} {{ with .Site.Params.waline.pageView }}class="waline-pageview-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
||||||
<i class="fa fa-sync fa-spin"></i>
|
<i class="fa fa-sync fa-spin"></i>
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
{{ if .Site.Params.postMeta.wordCount }}
|
{{ if .Site.Params.postMeta.wordCount }}
|
||||||
<span class="post-meta-item" title="{{ T "PostWords" }}">
|
<span class="post-meta-item" title="{{ T "PostMeta.words.title" }}">
|
||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="far fa-file-word"></i>
|
<i class="far fa-file-word"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="post-meta-item-text">{{ print (T "PostWords") (T "SymbolColon") }}</span><span>{{ T "PostWordCount" . }}</span>
|
<span class="post-meta-item-text">{{ print (T "PostMeta.words.title") (T "SymbolColon") }}</span>
|
||||||
|
<span>{{ T "PostMeta.words.count" . }}</span>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user