hexo-theme-solitude 3.0.17 → 3.0.18

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/languages/en.yml CHANGED
File without changes
File without changes
File without changes
@@ -22,17 +22,38 @@ if games
22
22
  .tips= game.tips_right
23
23
 
24
24
  if site.data.about.likes
25
- - const likes = site.data.about.likes
26
- .author-content
27
- each like in likes
28
- .author-content-item(class=like.type, style=`background: url(${like.bg}) no-repeat center; background-size: cover;`)
29
- .card-content
30
- .author-content-item-tips= like.tips
31
- span.author-content-item-title= like.title
32
- .content-bottom
33
- .tips= like.subtips
34
- if like.button
35
- .banner-button-group
36
- a.banner-button(href=url_for(like.button_link))
37
- i.solitude.fas.fa-circle-chevron-right
38
- span.banner-button-text= like.button_text
25
+ - const likes = site.data.about.likes
26
+ .author-content
27
+ each like in likes
28
+ if like.type === 'comic'
29
+ .author-content-item.comic
30
+ .card-content
31
+ .author-content-item-tips= like.tips
32
+ span.author-content-item-title= like.title
33
+ .content-bottom
34
+ if like.subtips
35
+ .tips= like.subtips
36
+ if like.button
37
+ .banner-button-group
38
+ a.banner-button(href=url_for(like.button_link))
39
+ i.solitude.fas.fa-circle-chevron-right
40
+ span.banner-button-text= like.button_text
41
+ .comic-box
42
+ each item in like.list
43
+ a.comic-item(href=item.href target="_blank", rel="noopener noreferrer", title=item.name)
44
+ .comic-item-cover
45
+ img.nolazyload(src=item.cover, alt=item.name)
46
+
47
+ else
48
+ .author-content-item(class=like.type style=`background: url(${like.bg}) no-repeat center/cover`)
49
+ .card-content
50
+ .author-content-item-tips= like.tips
51
+ span.author-content-item-title= like.title
52
+ .content-bottom
53
+ if like.subtips
54
+ .tips= like.subtips
55
+ if like.button
56
+ .banner-button-group
57
+ a.banner-button(href=url_for(like.button_link))
58
+ i.solitude.fas.fa-circle-chevron-right
59
+ span.banner-button-text= like.button_text
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "3.0.17",
3
+ "version": "3.0.18",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
6
9
  "keywords": [
7
10
  "hexo",
8
11
  "theme",
@@ -26,8 +29,5 @@
26
29
  },
27
30
  "homepage": "https://solitude.js.org",
28
31
  "author": "Hexo-Theme-Solitude<o@efu.me>",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "test": "echo \"Error: no test specified\" && exit 1"
32
- }
33
- }
32
+ "license": "Apache-2.0"
33
+ }
@@ -1,10 +1,5 @@
1
1
  .article-container
2
2
  overflow-wrap break-word
3
- #post &
4
- border var(--style-border)
5
- border-radius var(--radius)
6
- box-shadow var(--efu-shadow-border)
7
- background var(--efu-card-bg)
8
3
  +maxWidth768()
9
4
  overflow hidden
10
5
 
@@ -8,10 +8,8 @@
8
8
  padding 0
9
9
 
10
10
  #tag-page-tags+#recent-posts
11
- margin-top: calc(64px - 0.5rem)
12
-
13
- +maxWidth768()
14
- margin-top: calc(74px - 0.5rem)
11
+ +minWidth768()
12
+ margin-top calc(64px - 0.5rem)
15
13
 
16
14
  if hexo-config('index_post_list.direction') == "column"
17
15
  .recent-post-item
@@ -29,8 +27,6 @@ if hexo-config('index_post_list.direction') == "column"
29
27
 
30
28
  +maxWidth1300()
31
29
  margin-bottom .5rem
32
- #tag &:first-child
33
- margin-top: 2.5rem
34
30
 
35
31
  +maxWidth768()
36
32
  border-radius 12px
@@ -3,7 +3,6 @@
3
3
  background-size cover
4
4
  min-height 230px
5
5
  color var(--efu-white)
6
-
7
6
  &::after
8
7
  box-shadow 0 -69px 203px 11px #050b20 inset
9
8
  position absolute
@@ -18,7 +17,6 @@
18
17
  min-height 400px
19
18
  color var(--efu-white)
20
19
  overflow hidden
21
-
22
20
  &::after
23
21
  box-shadow 0 -69px 203px 11px #0e0e0e inset
24
22
  position absolute
@@ -26,4 +24,61 @@
26
24
  width 100%
27
25
  height 100%
28
26
  top 0
29
- left 0
27
+ left 0
28
+
29
+ .author-content-item.comic
30
+ min-height 400px
31
+ color var(--efu-white)
32
+ position relative
33
+
34
+ .comic-box
35
+ display flex
36
+ width 110%
37
+ height 100%
38
+ position absolute
39
+ left 50%
40
+ top 0
41
+ transform translateX(-50%)
42
+ &::after
43
+ box-shadow 0 -69px 203px 11px #04120f inset
44
+ position absolute
45
+ content ''
46
+ width 100%
47
+ height 100%
48
+ top 0
49
+ left 0
50
+ pointer-events: none;
51
+
52
+ .author-content-item-tips,
53
+ .author-content-item-title,
54
+ .content-bottom
55
+ z-index 3
56
+ color var(--efu-white)
57
+ pointer-events none
58
+
59
+ .comic-item
60
+ height 100%
61
+ color var(--efu-white)
62
+ width 20%
63
+ transform skew(-10deg, 0deg)
64
+ transition 0.8s
65
+ position relative
66
+ overflow hidden
67
+ &:hover
68
+ width 46%
69
+ .comic-item-cover
70
+ left 16%
71
+ transform skew(10deg, 0deg) scale(1.6)
72
+
73
+ .comic-item-cover
74
+ position absolute
75
+ top 0
76
+ left -50%
77
+ height 100%
78
+ transform skew(10deg, 0deg)
79
+ object-fit cover
80
+ transition scale 0.2s, all 0.8s
81
+ img
82
+ height 100%
83
+ max-width none
84
+ transition 0.8s
@@ -18,6 +18,8 @@
18
18
  transition .1s ease-out
19
19
  border-radius 12px
20
20
  border var(--style-border-always)
21
+ +maxWidth768()
22
+ display none
21
23
 
22
24
  &:hover
23
25
  max-height 1000px
@@ -114,4 +114,9 @@ if hexo-config('post.ai.enable')
114
114
  100%
115
115
  opacity 1
116
116
  transform translateY(0)
117
-
117
+
118
+ #post
119
+ border var(--style-border)
120
+ border-radius var(--radius)
121
+ box-shadow var(--efu-shadow-border)
122
+ background var(--efu-card-bg)