From 3c6b0e0223acf0ec898bc869bcf523532bd7fbca Mon Sep 17 00:00:00 2001 From: shenyu <448766534@qq.com> Date: Mon, 16 Dec 2019 23:48:13 +0800 Subject: [PATCH] fix: Reward --- layout/_partial/after-footer.ejs | 3 + layout/_partial/article.ejs | 32 +------- layout/_partial/mathjax.ejs | 2 +- layout/_partial/modal.ejs | 21 ++++++ layout/_partial/post/gitalk.ejs | 34 ++++----- layout/_partial/post/valine.ejs | 2 +- layout/layout.ejs | 1 + source/css/_partial/ayer.styl | 10 +++ source/css/_partial/reward.styl | 123 +++++++++++++++++++------------ source/css/_partial/tooltip.styl | 29 -------- source/css/style.styl | 1 - source/js/ayer.js | 16 ++-- 12 files changed, 141 insertions(+), 133 deletions(-) create mode 100644 layout/_partial/modal.ejs delete mode 100644 source/css/_partial/tooltip.styl diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index 21fdd99..bbcc119 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -31,6 +31,9 @@ <%- js('js/ayer') %> + + + <% if (theme.mathjax){ %> <%- partial('mathjax') %> <% } %> diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 47546ec..cb0d557 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -32,36 +32,8 @@ <% } %> <% if ((theme.reward_type === 2 || (theme.reward_type === 1 && post.reward)) && !index){ %> -
- -
- - 赏 - - - - -

<%= theme.reward_wording%>

-
- <% if(theme.alipay) {%> -
- - 支付宝 -
- <% } %> - <% if(theme.weixin) {%> -
- - 微信 -
- <% } %> -
-
-
-
-
-
+
+ 打赏
<% } %>
diff --git a/layout/_partial/mathjax.ejs b/layout/_partial/mathjax.ejs index b7d1997..73213ef 100644 --- a/layout/_partial/mathjax.ejs +++ b/layout/_partial/mathjax.ejs @@ -15,4 +15,4 @@ }); - \ No newline at end of file + \ No newline at end of file diff --git a/layout/_partial/modal.ejs b/layout/_partial/modal.ejs new file mode 100644 index 0000000..0e8124b --- /dev/null +++ b/layout/_partial/modal.ejs @@ -0,0 +1,21 @@ +
+ + +
+ +

<%= theme.reward_wording%>

+
+ <% if(theme.alipay) {%> +
+ + 支付宝 +
+ <% } %> + <% if(theme.weixin) {%> +
+ + 微信 +
+ <% } %> +
+
\ No newline at end of file diff --git a/layout/_partial/post/gitalk.ejs b/layout/_partial/post/gitalk.ejs index 8f86da6..fcf12ef 100644 --- a/layout/_partial/post/gitalk.ejs +++ b/layout/_partial/post/gitalk.ejs @@ -1,21 +1,21 @@ <% if (theme.gitalk.enable) { %> -
- <%- css('https://unpkg.com/gitalk/dist/gitalk.css') %> - <%- js('https://unpkg.com/gitalk/dist/gitalk.min.js') %> - <%- js('https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.min.js') %> - + <% } %> \ No newline at end of file diff --git a/layout/_partial/post/valine.ejs b/layout/_partial/post/valine.ejs index 674823a..eea7dd9 100644 --- a/layout/_partial/post/valine.ejs +++ b/layout/_partial/post/valine.ejs @@ -5,7 +5,7 @@ - +