hexo-theme-shokax 0.2.0-rc5 → 0.2.0-rc6

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ mixin CommentRender()
25
25
  setTimeout(function () {
26
26
  init({
27
27
  el: '#wcomments',
28
- serverURL: '#{theme.waline.serverURL}',
28
+ serverURL: '#{theme.waline.serverURL.replace(/\/+$/, '')}',
29
29
  lang: '#{theme.waline.lang}',
30
30
  locale: !{locale},
31
31
  emoji: !{emoji},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.2.0-rc5",
3
+ "version": "0.2.0-rc6",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/zkz098/hexo-theme-shokaX",
@@ -37,6 +37,7 @@
37
37
  "vuepress-plugin-sitemap2": "2.0.0-beta.180"
38
38
  },
39
39
  "dependencies": {
40
- "js-yaml": "^4.1.0"
40
+ "js-yaml": "^4.1.0",
41
+ "sass": "^1.58.3"
41
42
  }
42
43
  }
@@ -42,7 +42,7 @@ hexo.extend.helper.register('_new_comments', function (mode) {
42
42
  import { RecentComments } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs'
43
43
  RecentComments({
44
44
  el: '#new-comment',
45
- serverURL: '${hexo.theme.config.waline.serverURL}',
45
+ serverURL: '${hexo.theme.config.waline.serverURL.replace(/\/+$/, '')}',
46
46
  count: 10,
47
47
  });
48
48
  </script>
@@ -152,7 +152,7 @@ const resizeHandle = function (event) {
152
152
  }
153
153
  oWinHeight = window.innerHeight;
154
154
  oWinWidth = window.innerWidth;
155
- sideBar.child('.panels').changeOrGetHeight(oWinHeight + 'px');
155
+ // sideBar.child('.panels').changeOrGetHeight(oWinHeight + 'px');
156
156
  };
157
157
  const scrollHandle = function (event) {
158
158
  const winHeight = window.innerHeight;
@@ -475,7 +475,7 @@ const mediaPlayer = function (t, config) {
475
475
  });
476
476
  }
477
477
  }
478
- }).then(function (c) {
478
+ }).then((c) => {
479
479
  if (c) {
480
480
  playlist.create();
481
481
  controller.create();
@@ -532,7 +532,7 @@ const mediaPlayer = function (t, config) {
532
532
  this.init();
533
533
  }
534
534
  },
535
- init: function () {
535
+ init: () => {
536
536
  const item = playlist.current();
537
537
  if (!item || item.error) {
538
538
  this.mode();