From 2b282fc57ccab11ad41c857450f4e87e42e47f38 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Sat, 16 Sep 2017 17:28:23 +0800 Subject: [PATCH] style: add description for reward images release 2.6.1 --- data/even/default.toml | 2 ++ data/even/en.toml | 2 ++ data/even/zh-CN.toml | 2 ++ exampleSite/data/even/default.toml | 2 ++ layouts/partials/head.html | 2 +- layouts/partials/post/reward.html | 9 ++++++--- layouts/partials/scripts.html | 2 +- src/css/_partial/_post/_reward.scss | 6 ++++++ src/package.json | 2 +- static/dist/even.min.css | 2 +- static/dist/even.min.css.map | 2 +- 11 files changed, 25 insertions(+), 8 deletions(-) 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) }}
+ {{- $lang := .Site.Data.even.default }} - +
{{ $qrCode := .Site.Params.reward }} {{ with $qrCode.wechat }} {{- end }} {{ with $qrCode.alipay }} {{- end }}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index d74549f..78819d6 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -13,7 +13,7 @@ {{ if .Site.Params.fancybox }}{{ end }} {{- end }} - + {{- if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) }}