hexo-theme-shokax 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layout/_mixin/card.pug +3 -2
- package/layout/_partials/footer.pug +1 -0
- package/layout/_partials/sidebar/menu.pug +4 -3
- package/layout/archive.pug +1 -1
- package/layout/category.pug +1 -1
- package/layout/page.pug +0 -1
- package/layout/post.pug +1 -1
- package/layout/tag.pug +1 -1
- package/package.json +9 -9
- package/scripts/plugin/lib/injects-point.js +2 -1
- package/source/css/_common/components/pages/home.styl +10 -4
- package/source/js/_app/library.js +1 -1
package/layout/_mixin/card.pug
CHANGED
@@ -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
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
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'})
|
package/layout/archive.pug
CHANGED
package/layout/category.pug
CHANGED
package/layout/page.pug
CHANGED
package/layout/post.pug
CHANGED
package/layout/tag.pug
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hexo-theme-shokax",
|
3
|
-
"version": "0.0.
|
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.
|
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.
|
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.
|
22
|
-
"@typescript-eslint/parser": "^5.
|
23
|
-
"eslint": "^8.
|
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
|
-
"eslint-plugin-n": "^15.6.
|
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.
|
28
|
+
"eslint-plugin-vue": "^9.9.0",
|
29
29
|
"typescript": "^4.9.4",
|
30
30
|
"vue": "^3.2.45"
|
31
31
|
},
|
@@ -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
|
-
|
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://
|
170
|
+
return `https://cdn.jsdelivr.net/${str}`;
|
171
171
|
}
|
172
172
|
if (str.indexOf('http') > -1) {
|
173
173
|
return str;
|