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