hexo-theme-shokax 0.4.19 → 0.4.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -94,6 +94,8 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
94
94
  else
95
95
  - audioValue = "undefined"
96
96
 
97
+ - var ccIcon = '<i class="ic i-creative-commons"></i>'
98
+ - var ccText = theme.creative_commons.license.toUpperCase()
97
99
  script(data-config type="text/javascript").
98
100
  var LOCAL = {
99
101
  ispost: !{is_post()},
@@ -107,6 +109,8 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
107
109
  empty: "!{__('search.empty')}",
108
110
  stats: "!{__('search.stats')}"
109
111
  },
112
+ nocopy: "!{!!page.nocopy}",
113
+ copyright: `!{page.copyright !== false ? (page.nocopy === true ? __("tips.nocopy") : __("tips.copyright", ccIcon + ccText)) : undefined}`,
110
114
  copy_tex: #{!!page.math},
111
115
  katex: #{!!page.math},
112
116
  mermaid: #{!!page.mermaid},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.4.19",
3
+ "version": "0.4.20",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",