💄🔧 Upate the reward tip info.
This commit is contained in:
parent
03fd9dc829
commit
85b7dc11ca
18
i18n/en.yaml
18
i18n/en.yaml
@ -102,6 +102,13 @@ PostReadMore:
|
||||
PostEditTitle:
|
||||
other: Edit this post
|
||||
|
||||
Reward:
|
||||
title: Donate
|
||||
wechatpay: Wechat Pay
|
||||
alipay: Alipay
|
||||
paypal: Paypal
|
||||
bitcoin: Bitcoin
|
||||
|
||||
PostCopyRight:
|
||||
title: Post Title
|
||||
author: Post Author
|
||||
@ -116,17 +123,6 @@ PostCopyRight:
|
||||
PostFollowMe:
|
||||
other: Welcome to my other publishing channels
|
||||
|
||||
RewardDonate:
|
||||
other: Donate
|
||||
RewardWechatpay:
|
||||
other: Wechat Pay
|
||||
RewardAlipay:
|
||||
other: Alipay
|
||||
RewardPaypal:
|
||||
other: PayPal
|
||||
RewardBitcoin:
|
||||
other: Bitcoin
|
||||
|
||||
PostCommentTitle:
|
||||
other: Comments
|
||||
|
||||
|
@ -103,6 +103,13 @@ PostReadMore:
|
||||
PostEditTitle:
|
||||
other: 编辑
|
||||
|
||||
Reward:
|
||||
title: 赞赏
|
||||
wechatpay: 微信
|
||||
alipay: 支付宝
|
||||
paypal: Paypal
|
||||
bitcoin: 比特币
|
||||
|
||||
PostCopyRight:
|
||||
title: 文章标题
|
||||
author: 本文作者
|
||||
@ -117,17 +124,6 @@ PostCopyRight:
|
||||
PostFollowMe:
|
||||
other: 欢迎关注我的其它发布渠道
|
||||
|
||||
RewardDonate:
|
||||
other: 赞赏
|
||||
RewardWechatpay:
|
||||
other: 微信
|
||||
RewardAlipay:
|
||||
other: 支付宝
|
||||
RewardPaypal:
|
||||
other: PayPal
|
||||
RewardBitcoin:
|
||||
other: 比特币
|
||||
|
||||
PostCommentTitle:
|
||||
other: 评论交流
|
||||
|
||||
|
@ -3,17 +3,15 @@
|
||||
<div class="reward-container">
|
||||
<div>{{ .comment | safeHTML }}</div>
|
||||
<button>
|
||||
{{ T "RewardDonate" }}
|
||||
{{ T "Reward.title" }}
|
||||
</button>
|
||||
<div class="post-reward">
|
||||
{{ range $name,$img := .reward }}
|
||||
{{ $fw := substr $name 0 1 }}
|
||||
{{ $pay := replace $name $fw ($fw | upper) 1 }}
|
||||
{{ $payName := T (printf "Reward%s" $pay) }}
|
||||
<div class="post-reward-item">
|
||||
<img src="/imgs/img-lazy-loading.gif" data-src="{{ $img }}" alt="{{ $.Site.Params.author }} - {{ $payName }}">
|
||||
<span>{{ $payName }}</span>
|
||||
</div>
|
||||
{{ $payName := T (printf "Reward.%s" $name) }}
|
||||
<div class="post-reward-item">
|
||||
<img src="/imgs/img-lazy-loading.gif" data-src="{{ $img }}" alt="{{ $.Site.Params.author }} - {{ $payName }}">
|
||||
<span>{{ $payName }}</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user