aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/post/reward.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-12-06 20:34:22 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-12-06 20:34:22 +0800
commit1bb6eea8a84cbf67a7396abb63223f6a719aad60 (patch)
treee74741aaa70ad3002ff64aff4843a10f10cf6212 /layouts/partials/post/reward.html
parent8c078104847c7f0698407a3b97ab106f43d6aad2 (diff)
feat: allow set something for a single content
* Now, you can open or close toc, copyright, reward and mathjax for a single content. * Also change the default global settings: autoCollapseToc = true -> false; mathjax = true -> false
Diffstat (limited to 'layouts/partials/post/reward.html')
-rw-r--r--layouts/partials/post/reward.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post/reward.html b/layouts/partials/post/reward.html
index 7847454..35933ea 100644
--- a/layouts/partials/post/reward.html
+++ b/layouts/partials/post/reward.html
@@ -1,4 +1,4 @@
-{{ if and .Site.Params.reward.enable (ne .Params.reward false) }}
+{{ if or .Params.reward (and .Site.Params.reward.enable (ne .Params.reward false)) }}
<div class="post-reward">
{{- $lang := .Site.Data.even.default }}
<input type="checkbox" name="reward" id="reward" hidden />