diff --git a/_config.yml b/_config.yml index 433bf820..3b38bfbf 100644 --- a/_config.yml +++ b/_config.yml @@ -138,6 +138,15 @@ post: # Post copyright info copyright_info: false # Option values: true | false + # Post share + share: false # Option values: true | false + + # Reward author + reward: + enable: false # Option values: true | false + img_link: # Image link for the payment QR code + text: # Custom reward text, Can be null + # --------------------------------------------------------------------------------------- # Code block # Docs: https://keep-docs.xpoet.cn/tutorial/configuration-guide/code_block.html @@ -223,9 +232,9 @@ comment: # See: https://github.com/imaegoo/twikoo # https://twikoo.js.org twikoo: - env_id: # Tencent Cloud environment id - region: # Environment region. If select Guangzhou, fill in "ap-guangzhou" - version: 1.6.8 # Twikoo version, default use v1.6.8 + env_id: # Environment ID + region: # Environment region, Can be null + version: 1.6.21 # Twikoo version, default use 1.6.21 # Waline # See: https://github.com/walinejs/waline diff --git a/languages/en.yml b/languages/en.yml index 72e8b1bc..e1e7118b 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -85,3 +85,10 @@ footer: tencent_cloud: Tencent Cloud upyun: UPYUN total_words: Total words +post: + share: + qq: "Share to QQ" + wechat: "Share to WeChat" + weibo: "Share to WeiBo" + wechat_scan: "Scan by WeChat" + reward: Reward Author diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 12fc98cc..9a15f9b8 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -85,3 +85,10 @@ footer: tencent_cloud: 腾讯云 upyun: 又拍云 total_words: 总字数 +post: + share: + qq: "分享到 QQ" + wechat: "分享到微信" + weibo: "分享到微博" + wechat_scan: "微信扫一扫" + reward: 打赏作者 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index 962fb5cb..f566a160 100644 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -85,3 +85,10 @@ footer: tencent_cloud: 騰訊雲 upyun: 又拍雲 total_words: 總字數 +post: + share: + qq: "分享到 QQ" + wechat: "分享到微信" + weibo: "分享到微博" + wechat_scan: "微信掃壹掃" + reward: 給作者打賞 diff --git a/layout/_partial/article-meta-info.ejs b/layout/_partial/article-meta-info.ejs index 4c3ea34a..6b81c1d6 100644 --- a/layout/_partial/article-meta-info.ejs +++ b/layout/_partial/article-meta-info.ejs @@ -25,7 +25,7 @@ const home_tag_limit_number = theme?.home_article?.tag?.limit || 3 <% } %> - <% if ((post.categories.length && theme?.home_article?.category?.enable === true) || page_type === 'post') { %> + <% if (post.categories.length && (theme?.home_article?.category?.enable === true || page_type === 'post')) { %>