diff --git a/data/even/default.toml b/data/even/default.toml index 6b6a197..ebbb7b6 100644 --- a/data/even/default.toml +++ b/data/even/default.toml @@ -14,6 +14,8 @@ categories = "分类" toc = "文章目录" readmore = "阅读更多" reward = "赞赏支持" + rewardAlipay = "支付宝打赏" + rewardWechat = "微信打赏" seeMarkDown = "查看本文 Markdown 版本 »" [posts.header] diff --git a/data/even/en.toml b/data/even/en.toml index f84f92f..742649e 100644 --- a/data/even/en.toml +++ b/data/even/en.toml @@ -14,6 +14,8 @@ categories = "Categories" toc = "Contents" readmore = "Read more.." reward = "Reward" + rewardAlipay = "alipay" + rewardWechat = "wechat" seeMarkDown = "The Markdown version »" [posts.header] diff --git a/data/even/zh-CN.toml b/data/even/zh-CN.toml index 6b6a197..ebbb7b6 100644 --- a/data/even/zh-CN.toml +++ b/data/even/zh-CN.toml @@ -14,6 +14,8 @@ categories = "分类" toc = "文章目录" readmore = "阅读更多" reward = "赞赏支持" + rewardAlipay = "支付宝打赏" + rewardWechat = "微信打赏" seeMarkDown = "查看本文 Markdown 版本 »" [posts.header] diff --git a/exampleSite/data/even/default.toml b/exampleSite/data/even/default.toml index f84f92f..742649e 100644 --- a/exampleSite/data/even/default.toml +++ b/exampleSite/data/even/default.toml @@ -14,6 +14,8 @@ categories = "Categories" toc = "Contents" readmore = "Read more.." reward = "Reward" + rewardAlipay = "alipay" + rewardWechat = "wechat" seeMarkDown = "The Markdown version »" [posts.header] diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 38fab42..eb26f82 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -51,7 +51,7 @@ - + {{ if .Site.Params.bootcdn -}} {{ if .Site.Params.fancybox }}{{ end }} {{- else if .Site.Params.publicCDN.enable -}} diff --git a/layouts/partials/post/reward.html b/layouts/partials/post/reward.html index 5a26cd7..7847454 100644 --- a/layouts/partials/post/reward.html +++ b/layouts/partials/post/reward.html @@ -1,17 +1,20 @@ {{ if and .Site.Params.reward.enable (ne .Params.reward false) }}