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%>
-<%= theme.reward_wording%>
+