hexo-theme-shokax 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,9 +13,10 @@ mixin CardRender(item)
13
13
  div(class="info")
14
14
  if item.link
15
15
  - var postTitleIcon = '<i class="ic i-link-alt"></i>'
16
- - var postText = itemname || item.link || __('post.untitled')
16
+ - var postText = itemname || item.link || item.path || __('post.untitled')
17
17
  div(class="ribbon")
18
- != _url(item.link , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
18
+ - var tempL = item.link || item.path
19
+ != _url(tempL , postText + (postTitleIcon || ''), {itemprop: 'url', title: postText})
19
20
  div(class="inner")
20
21
  - var len = ''
21
22
  if item.child
@@ -36,6 +36,7 @@ div(class="status")
36
36
  a(target="_blank" href=`https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${RC}`)
37
37
  img(src=theme.statics + theme.assets + '/' + theme.footer.icp.icon style="max-width: 2em;display:inline;")
38
38
  != beianN
39
+ != shokax_inject('status')
39
40
 
40
41
  != shokax_inject('footer')
41
42
 
@@ -21,9 +21,10 @@ mixin item(name, path, parent, dropdown, sublist)
21
21
  - var menuText = __('menu.' + subname).replace('menu.', '')
22
22
  if subname == 'default'
23
23
  - var menuText = __('menu.' + name).replace('menu.', '')
24
- - var menuIcon = '<i class="ic i-' + trimn(path[1]) + '"></i>'
25
- li(class="item")
26
- != _url(itemURL, menuIcon + menuText, {rel: 'section'})
24
+ else
25
+ - var menuIcon = '<i class="ic i-' + trimn(path[1]) + '"></i>'
26
+ li(class="item")
27
+ != _url(itemURL, menuIcon + menuText, {rel: 'section'})
27
28
  else
28
29
  li(class="item")
29
30
  != _url(itemURL, menuIcon + menuText, {rel: 'section'})
@@ -5,7 +5,7 @@ block title
5
5
  != `${page.year}${__('symbol.year')}/${page.month}${__('symbol.month')}`
6
6
  else if is_year()
7
7
  != `${page.year}${__('symbol.year')}`
8
- != `${__('title.archive')}|`
8
+ != `${__('title.archive')}`
9
9
 
10
10
  block header
11
11
  h1(itemprop="name headline")
@@ -1,7 +1,7 @@
1
1
  extends ./_partials/layout.pug
2
2
 
3
3
  block title
4
- != `${__('title.category')}${__('symbol.colon')}${page.category}|`
4
+ != `${__('title.category')}${__('symbol.colon')}${page.category}`
5
5
 
6
6
  block header
7
7
  h1(itemprop="name headline")
package/layout/page.pug CHANGED
@@ -11,7 +11,6 @@ block title
11
11
  != __('title.not_found')
12
12
  else
13
13
  != page.title
14
- != "|"
15
14
 
16
15
  block header
17
16
  h1(itemprop="name headline")
package/layout/post.pug CHANGED
@@ -12,7 +12,7 @@ block title
12
12
  - var cat_list = cat.name + comma + cat_list
13
13
  - var comma = ' - '
14
14
  - var page_title = page.title + ' - ' + cat_list
15
- != `${page_title} |`
15
+ != `${page_title}`
16
16
 
17
17
  block header
18
18
  h1(itemprop="name headline")
package/layout/tag.pug CHANGED
@@ -1,7 +1,7 @@
1
1
  extends ./_partials/layout.pug
2
2
 
3
3
  block title
4
- != `${__('title.tag')}${__('symbol.colon')}${page.tag}|`
4
+ != `${__('title.tag')}${__('symbol.colon')}${page.tag}`
5
5
 
6
6
  block header
7
7
  h1(itemprop="name headline")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/zkz098/hexo-theme-shokaX",
@@ -10,22 +10,22 @@
10
10
  "test": "cd ./source/js && tsc"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/animejs": "^3.1.6",
13
+ "@types/animejs": "^3.1.7",
14
14
  "@types/fancybox": "^3.5.3",
15
15
  "@types/hexo": "^3.8.8",
16
- "@types/jquery": "^3.5.14",
16
+ "@types/jquery": "^3.5.16",
17
17
  "@types/js-yaml": "^4.0.5",
18
18
  "@types/lozad": "^1.16.1",
19
19
  "@types/node": "^18.11.18",
20
20
  "@types/shelljs": "^0.8.11",
21
- "@typescript-eslint/eslint-plugin": "^5.47.1",
22
- "@typescript-eslint/parser": "^5.47.1",
23
- "eslint": "^8.30.0",
21
+ "@typescript-eslint/eslint-plugin": "^5.49.0",
22
+ "@typescript-eslint/parser": "^5.49.0",
23
+ "eslint": "^8.32.0",
24
24
  "eslint-config-standard": "^17.0.0",
25
- "eslint-plugin-import": "^2.26.0",
26
- "eslint-plugin-n": "^15.6.0",
25
+ "eslint-plugin-import": "^2.27.5",
26
+ "eslint-plugin-n": "^15.6.1",
27
27
  "eslint-plugin-promise": "^6.1.1",
28
- "eslint-plugin-vue": "^9.8.0",
28
+ "eslint-plugin-vue": "^9.9.0",
29
29
  "typescript": "^4.9.4",
30
30
  "vue": "^3.2.45"
31
31
  },
@@ -9,7 +9,8 @@ module.exports = {
9
9
  'postBodyEnd',
10
10
  'footer',
11
11
  'bodyEnd',
12
- 'comment'
12
+ 'comment',
13
+ 'status'
13
14
  ],
14
15
  styles: [
15
16
  'variable',
@@ -9,8 +9,8 @@ $item {
9
9
 
10
10
  &.show {
11
11
  @extend .slide-up-big-in;
12
- content-visibility: auto;
13
- contain-intrinsic-size: 250px;
12
+ // content-visibility: auto;
13
+ // contain-intrinsic-size: 250px;
14
14
  opacity: 1;
15
15
  }
16
16
 
@@ -26,6 +26,9 @@ $item {
26
26
  position: absolute;
27
27
  bottom: 0;
28
28
  right: 0;
29
+ transform-style: preserve-3d;
30
+ transform: translateZ(2rem);
31
+ backface-visibility: hidden;
29
32
  padding: .3rem 1rem;
30
33
  border-radius: 1rem 0;
31
34
  color: var(--grey-0);
@@ -37,6 +40,9 @@ $item {
37
40
  content: '';
38
41
  height: calc(100% - 1rem);
39
42
  width: calc(100% - 1rem);
43
+ transform-style: preserve-3d;
44
+ transform: translateZ(-2rem);
45
+ backface-visibility: hidden;
40
46
  border-radius: 5rem;
41
47
  left: .5rem;
42
48
  top: .8rem;
@@ -53,7 +59,7 @@ $item {
53
59
  }
54
60
  }
55
61
 
56
- .active .btn {
62
+ /*.active .btn {
57
63
  transform-style: preserve-3d;
58
64
  transform: translateZ(2rem);
59
65
  backface-visibility: hidden;
@@ -63,7 +69,7 @@ $item {
63
69
  transform: translateZ(-2rem);
64
70
  backface-visibility: hidden;
65
71
  }
66
- }
72
+ }*/
67
73
 
68
74
  .meta {
69
75
  font-size: $font-size-smaller;
@@ -167,7 +167,7 @@ const assetUrl = function (asset, type) {
167
167
  return `https://cdn.jsdelivr.net/${str}`;
168
168
  }
169
169
  if (str.indexOf('npm') > -1) {
170
- return `https://unpkg.com/${str}`;
170
+ return `https://cdn.jsdelivr.net/${str}`;
171
171
  }
172
172
  if (str.indexOf('http') > -1) {
173
173
  return str;