🔧💄 Update the post archive info.
This commit is contained in:
parent
dca196c315
commit
a2019876a2
23
i18n/en.yaml
23
i18n/en.yaml
@ -56,20 +56,15 @@ ArchiveCounterTitle:
|
|||||||
zero: No posts.
|
zero: No posts.
|
||||||
other: "{{ .Count }} posts in total"
|
other: "{{ .Count }} posts in total"
|
||||||
|
|
||||||
PostArchiveCheersUm:
|
PostArchive:
|
||||||
other: Um..
|
cheers:
|
||||||
PostArchiveCheersOk:
|
um: Um...
|
||||||
other: Ok
|
ok: Ok
|
||||||
PostArchiveCheersNice:
|
nice: Nice
|
||||||
other: Nice
|
good: Good
|
||||||
PostArchiveCheersGood:
|
great: Greate
|
||||||
other: Good
|
excellent: Excellent
|
||||||
PostArchiveCheersGreat:
|
keepOn: Keep on posting.╰(*°▽°*)╯
|
||||||
other: Great
|
|
||||||
PostArchiveCheersExcellent:
|
|
||||||
other: Excellent
|
|
||||||
PostArchiveKeepOn:
|
|
||||||
other: Keep on posting.╰(*°▽°*)╯
|
|
||||||
|
|
||||||
PostMeta:
|
PostMeta:
|
||||||
sticky: Stickys
|
sticky: Stickys
|
||||||
|
@ -57,20 +57,15 @@ ArchiveCounterTitle:
|
|||||||
zero: 暂无日志
|
zero: 暂无日志
|
||||||
other: "目前共计 <strong>{{ .Count }}</strong> 篇日志"
|
other: "目前共计 <strong>{{ .Count }}</strong> 篇日志"
|
||||||
|
|
||||||
PostArchiveCheersUm:
|
PostArchive:
|
||||||
other: 嗯..
|
cheers:
|
||||||
PostArchiveCheersOk:
|
um: 嗯..
|
||||||
other: 还行
|
ok: 还行
|
||||||
PostArchiveCheersNice:
|
nice: 不错
|
||||||
other: 不错
|
good: 很好
|
||||||
PostArchiveCheersGood:
|
great: 非常好
|
||||||
other: 很好
|
excellent: 太棒了
|
||||||
PostArchiveCheersGreat:
|
keepOn: 继续努力哟。╰(*°▽°*)╯
|
||||||
other: 非常好
|
|
||||||
PostArchiveCheersExcellent:
|
|
||||||
other: 太棒了
|
|
||||||
PostArchiveKeepOn:
|
|
||||||
other: 继续努力哟。╰(*°▽°*)╯
|
|
||||||
|
|
||||||
PostMeta:
|
PostMeta:
|
||||||
sticky: 置顶
|
sticky: 置顶
|
||||||
|
@ -6,25 +6,25 @@
|
|||||||
<div class="post-block">
|
<div class="post-block">
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
<div class="collection-title">
|
<div class="collection-title">
|
||||||
{{ $cheers := "Um" }}
|
{{ $cheers := "um" }}
|
||||||
{{ $posts := .Scratch.Get "postsCount" }}
|
{{ $posts := .Scratch.Get "postsCount" }}
|
||||||
{{ if gt $posts 210 }}
|
{{ if gt $posts 210 }}
|
||||||
{{ $cheers = "Excellent" }}
|
{{ $cheers = "excellent" }}
|
||||||
{{ else if gt $posts 130 }}
|
{{ else if gt $posts 130 }}
|
||||||
{{ $cheers = "Great" }}
|
{{ $cheers = "great" }}
|
||||||
{{ else if gt $posts 80 }}
|
{{ else if gt $posts 80 }}
|
||||||
{{ $cheers = "Good" }}
|
{{ $cheers = "good" }}
|
||||||
{{ else if gt $posts 50 }}
|
{{ else if gt $posts 50 }}
|
||||||
{{ $cheers = "Nice" }}
|
{{ $cheers = "nice" }}
|
||||||
{{ else if gt $posts 30 }}
|
{{ else if gt $posts 30 }}
|
||||||
{{ $cheers = "Ok" }}
|
{{ $cheers = "ok" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="collection-header">
|
<span class="collection-header">
|
||||||
{{ T (printf "PostArchiveCheers%s" $cheers) }}
|
{{ T (printf "PostArchive.cheers.%s" $cheers) }}
|
||||||
{{ T "SymbolComma" }}
|
{{ T "SymbolComma" }}
|
||||||
{{ T "ArchiveCounterTitle" $posts | safeHTML }}
|
{{ T "ArchiveCounterTitle" $posts | safeHTML }}
|
||||||
{{ T "SymbolComma" }}
|
{{ T "SymbolComma" }}
|
||||||
{{ T "PostArchiveKeepOn" }}
|
{{ T "PostArchive.keepOn" }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user