diff --git a/assets/css/_common/components/post/post-followme.scss b/assets/css/_common/components/post/post-followme.scss index ba7450e..5de4f6a 100644 --- a/assets/css/_common/components/post/post-followme.scss +++ b/assets/css/_common/components/post/post-followme.scss @@ -1,7 +1,7 @@ @if $follow_me { .followme { color: $grey; - padding: 1em 1.5em; + /* padding: 1em 1.5em; */ text-align: center; @include post-card(); border-left: none; diff --git a/assets/css/_common/components/post/post-reward.scss b/assets/css/_common/components/post/post-reward.scss index d96301e..eb417fc 100644 --- a/assets/css/_common/components/post/post-reward.scss +++ b/assets/css/_common/components/post/post-reward.scss @@ -3,6 +3,11 @@ padding: 1em 0; text-align: center; + div>i { + font-size: 1.85em; + margin-right: 4px; + } + button { @include button($sidebar-highlight); border: 2px solid $sidebar-highlight; @@ -21,7 +26,7 @@ display: block; } - div { + .post-reward-item { display: inline-block; span { @@ -29,19 +34,23 @@ } @if $reward_settings_animation { + &:hover span { animation: next-roll .1s infinite linear; // The animation may affect :hover of img in dark mode pointer-events: none; } - } + + } } img { display: inline-block; - margin: .8em 2em 0; + margin: .8em 1.2em; max-width: 100%; width: 180px; + border: #eee 1px solid; + box-shadow:rgba(0,0,0,0.2) 0 1px 5px 0px; } } diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 2481578..730adc4 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -339,13 +339,13 @@ params: # Front-matter variable (nonsupport animation). rewardSets: # If true, a donate button will be displayed in every article by default. - enable: false - animation: false - #comment: Buy me a coffee + enable: true + animation: true + comment: '请我喝杯咖啡吧 ヾ(^▽^*)))' reward: - #wechatpay: /images/wechatpay.png - #alipay: /images/alipay.png + wechatpay: /imgs/wechat-pay.png + alipay: /imgs/ali-pay.png #paypal: /images/paypal.png #bitcoin: /images/bitcoin.png diff --git a/exampleSite/static/imgs/ali-pay.png b/exampleSite/static/imgs/ali-pay.png new file mode 100644 index 0000000..3d8fbd4 Binary files /dev/null and b/exampleSite/static/imgs/ali-pay.png differ diff --git a/exampleSite/static/imgs/wechat-pay.png b/exampleSite/static/imgs/wechat-pay.png new file mode 100644 index 0000000..069def5 Binary files /dev/null and b/exampleSite/static/imgs/wechat-pay.png differ diff --git a/i18n/en-us.yaml b/i18n/en-us.yaml index 7124b76..8fc5d47 100644 --- a/i18n/en-us.yaml +++ b/i18n/en-us.yaml @@ -71,6 +71,17 @@ PostCRLicenseContent: PostFollowMe: other: Welcome to my other publishing channels +RewardDonate: + other: Donate +RewardWechatpay: + other: Wechat Pay +RewardAlipay: + other: Alipay +RewardPaypal: + other: PayPal +RewardBitcoin: + other: Bitcoin + VisitorsLabel: other: Total Visitors PageViewsLabel: diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index a7b6959..0ebdf49 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -73,6 +73,17 @@ PostCRLicenseContent: PostFollowMe: other: 欢迎关注我的其它发布渠道 +RewardDonate: + other: 赞赏 +RewardWechatpay: + other: 微信 +RewardAlipay: + other: 支付宝 +RewardPaypal: + other: PayPal +RewardBitcoin: + other: 比特币 + UserVistorsLabel: other: 总访客量 PageViewsLabel: diff --git a/layouts/partials/post/post_footer.html b/layouts/partials/post/post_footer.html index d48a00b..0e331b4 100644 --- a/layouts/partials/post/post_footer.html +++ b/layouts/partials/post/post_footer.html @@ -9,8 +9,9 @@ {{- end }}
{{- else }} -{{ partial "post/post_copyright.html" . }} -{{ partial "post/post_followme.html" . }} +{{ partial "post/post_footer/post_reward.html" . }} +{{ partial "post/post_footer/post_copyright.html" . }} +{{ partial "post/post_footer/post_followme.html" . }}