hexo-theme-shokax 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
package/CONTRIBUTING.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ---
4
4
  > 请在贡献前仔细阅读本文档
5
+
5
6
  目录:
6
7
  1. [代码贡献指南](#代码贡献指南)
7
8
  2. [翻译贡献指南](#翻译贡献指南)
@@ -14,6 +15,9 @@
14
15
  2. 您同意我们在未来进行授权许可更改时包含您所贡献的代码
15
16
  3. 您有对于 shokaX 所使用的相关技术和 github PR 及 actions 的基础了解
16
17
 
18
+ 对于代码修改的说明:
19
+ 1. `page js` 仅需要修改ts文件,`hexo script` 请修改js文件
20
+
17
21
  有关提交的说明:
18
22
  1. 您在提交时的`commit message`应描述其改动
19
23
  2. 如果您提交的代码中包括图片资源,建议使用`webp`或`avif`格式
File without changes
@@ -21,18 +21,18 @@ mixin CommentRender()
21
21
  script(type="module" data-pjax).
22
22
  import { init } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs';
23
23
 
24
- var path = document.getElementById("twikoo_visitors").getAttribute("data-path");
24
+ const path = document.getElementById("twikoo_visitors").getAttribute("data-path");
25
25
  setTimeout(function () {
26
26
  init({
27
27
  el: '#wcomments',
28
- serverURL: '#{hexo.theme.config.waline.serverURL}',
29
- lang: '#{hexo.theme.config.waline.lang}',
28
+ serverURL: '#{theme.waline.serverURL}',
29
+ lang: '#{theme.waline.lang}',
30
30
  locale: !{locale},
31
31
  emoji: !{emoji},
32
32
  meta: !{meta},
33
33
  requiredMeta: !{requiredMeta},
34
- wordLimit: #{hexo.theme.config.waline.wordLimit},
35
- pageSize: #{hexo.theme.config.waline.pageSize},
34
+ wordLimit: #{theme.waline.wordLimit},
35
+ pageSize: #{theme.waline.pageSize},
36
36
  pageview: #{theme.waline.pageview},
37
37
  path: path
38
38
  });
@@ -6,7 +6,7 @@ if page.reward !== false
6
6
  p
7
7
  != __('reward.text')
8
8
  div(id="qr")
9
- each name, image in theme.reward.account
9
+ each image, name in theme.reward.account
10
10
  - var builtin = ['wechatpay', 'alipay', 'paypal', 'bitcoin']
11
11
  if builtin.includes(name)
12
12
  - var translation = __('reward.' + name)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/zkz098/hexo-theme-shokaX",