From 85b7dc11ca781af2dd1a9d5a461895d39798ed51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Sun, 1 Jan 2023 21:43:06 +0800 Subject: [PATCH] :lipstick::wrench: Upate the reward tip info. --- i18n/en.yaml | 18 +++++++----------- i18n/zh-cn.yaml | 18 +++++++----------- layouts/partials/post/footer_meta/reward.html | 14 ++++++-------- 3 files changed, 20 insertions(+), 30 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 25c86cd..0777a9b 100644 --- a/i18n/en.yaml +++ b/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 diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index 04083b0..72a4882 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -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: 评论交流 diff --git a/layouts/partials/post/footer_meta/reward.html b/layouts/partials/post/footer_meta/reward.html index 6003e84..94924e0 100644 --- a/layouts/partials/post/footer_meta/reward.html +++ b/layouts/partials/post/footer_meta/reward.html @@ -3,17 +3,15 @@
{{ .comment | safeHTML }}
{{ range $name,$img := .reward }} - {{ $fw := substr $name 0 1 }} - {{ $pay := replace $name $fw ($fw | upper) 1 }} - {{ $payName := T (printf "Reward%s" $pay) }} -
- {{ $.Site.Params.author }} - {{ $payName }} - {{ $payName }} -
+ {{ $payName := T (printf "Reward.%s" $name) }} +
+ {{ $.Site.Params.author }} - {{ $payName }} + {{ $payName }} +
{{ end }}