打赏功能¶
可以在每篇文章末尾添加打赏链接,设置主题_config.yml
文件
# Reward (Donate)
# Front-matter variable (unsupport animation).
reward_settings:
# If true, reward would be displayed in every article by default.
enable: false
animation: false
#comment: Donate comment here.
reward:
#wechatpay: /images/wechatpay.png
#alipay: /images/alipay.png
#bitcoin: /images/bitcoin.png
设置属性enable
为true
,animation
为true
,添加comment
enable: true
comment: 坚持原创技术分享,您的支持将鼓励我继续创作!
将微信支付和支付宝支付的截图放置在主题包下source/images
文件夹下
wechatpay: /images/wechatpay.jpg
alipay: /images/alipay.jpg
#bitcoin: /images/bitcoin.jpg