diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-12-06 20:34:22 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-12-06 20:34:22 +0800 |
commit | 1bb6eea8a84cbf67a7396abb63223f6a719aad60 (patch) | |
tree | e74741aaa70ad3002ff64aff4843a10f10cf6212 /layouts/partials/post/copyright.html | |
parent | 8c078104847c7f0698407a3b97ab106f43d6aad2 (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/copyright.html')
-rw-r--r-- | layouts/partials/post/copyright.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post/copyright.html b/layouts/partials/post/copyright.html index cbaefb7..8a8a350 100644 --- a/layouts/partials/post/copyright.html +++ b/layouts/partials/post/copyright.html @@ -1,4 +1,4 @@ -{{ if and .Site.Params.contentCopyright (ne .Params.contentCopyright false) }} +{{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) }} {{ $lang := .Site.Data.even.default -}} <div class="post-copyright"> <p class="copyright-item"> |