hexo-theme-shokax 0.0.2-alpha3 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,9 +7,9 @@ mixin CommentRender()
7
7
  script(type="text/javascript" data-pjax).
8
8
  setTimeout(function () {
9
9
  twikoo.init({
10
- envId: '#{ hexo.theme.config.twikoo.envId }',
10
+ envId: '#{ theme.twikoo.envId }',
11
11
  el: '#tcomments',
12
- region: '#{hexo.theme.config.twikoo?.region}'
12
+ region: '#{theme.twikoo.region}'
13
13
  })
14
14
  }, 1000)
15
15
  else if wl
@@ -21,13 +21,13 @@ mixin CommentRender()
21
21
  init({
22
22
  el: '#wcomments',
23
23
  serverURL: '#{hexo.theme.config.waline.serverURL}',
24
- lang: '#{hexo.theme.config.waline?.lang || 'zh-CN'}',
25
- locale: #{hexo.theme.config.waline?.locale || {}},
26
- emoji: #{hexo.theme.config.waline?.emoji || []},
27
- meta: #{hexo.theme.config.waline?.meta ?? ['nick', 'mail', 'link']},
28
- requiredMeta: #{hexo.theme.config.waline?.requiredMeta ?? ['nick', 'mail']},
29
- wordLimit: #{hexo.theme.config.waline?.wordLimit ?? 0},
30
- pageSize: #{hexo.theme.config.waline?.pageSize || 10}
24
+ lang: '#{hexo.theme.config.waline.lang}',
25
+ locale: #{hexo.theme.config.waline.locale},
26
+ emoji: #{hexo.theme.config.waline.emoji},
27
+ meta: #{hexo.theme.config.waline.meta},
28
+ requiredMeta: #{hexo.theme.config.waline.requiredMeta},
29
+ wordLimit: #{hexo.theme.config.waline.wordLimit},
30
+ pageSize: #{hexo.theme.config.waline.pageSize}
31
31
  });
32
32
  }, 1000)
33
33
  else if gt
@@ -41,7 +41,7 @@ mixin CommentRender()
41
41
  admin: #{theme.gitalk.admin},
42
42
  id: location.pathname, // Ensure uniqueness and length less than 50
43
43
  distractionFreeMode: false, // Facebook-like distraction free mode
44
- proxy: "#{theme.gitalk?.proxy || undefined}"
44
+ proxy: "#{theme.gitalk.proxy || undefined}"
45
45
  });
46
46
  gitalk.render("gtcomments")
47
47
  else if gs
@@ -51,13 +51,13 @@ mixin CommentRender()
51
51
  data-repo-id="#{theme.giscus.repoId}"
52
52
  data-category="#{theme.giscus.category}"
53
53
  data-category-id="#{theme.giscus.categoryId}"
54
- data-mapping="#{theme.giscus.mapping || "pathname" }"
55
- data-strict="#{theme.giscus.strict || "1" }"
56
- data-reactions-enabled="#{theme.giscus.reactionsEnabled || "1"}"
57
- data-emit-metadata="#{theme.giscus.emitMetadata || "0"}"
58
- data-input-position="#{theme.giscus.inputPosition || "bottom"}"
59
- data-theme="#{theme.giscus.commentTheme || "preferred_color_scheme"}"
60
- data-lang="#{theme.giscus.lang || "zh-CN"}"
54
+ data-mapping="#{theme.giscus.mapping}"
55
+ data-strict="#{theme.giscus.strict}"
56
+ data-reactions-enabled="#{theme.giscus.reactionsEnabled}"
57
+ data-emit-metadata="#{theme.giscus.emitMetadata}"
58
+ data-input-position="#{theme.giscus.inputPosition}"
59
+ data-theme="#{theme.giscus.commentTheme}"
60
+ data-lang="#{theme.giscus.lang}"
61
61
  data-loading="lazy"
62
62
  crossorigin="anonymous"
63
63
  async
@@ -48,4 +48,9 @@ else if gt
48
48
  link(rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css")
49
49
  script(src="https://unpkg.com/gitalk/dist/gitalk.min.js")
50
50
 
51
-
51
+ - var qw = theme.qweather.enable
52
+ if qw
53
+ style.
54
+ img[data-v-7d48daab] {
55
+ max-width: 2em !important;
56
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.0.2-alpha3",
3
+ "version": "0.0.3",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/zkz098/hexo-theme-shokaX",