sobekyll 0.1.1 → 0.2.0
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.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile +3 -3
- data/_config.yml +0 -1
- data/_includes/footer.html +3 -0
- data/_includes/header.html +32 -0
- data/_includes/post-item.html +6 -11
- data/_includes/slide-panel.html +42 -0
- data/_includes/time.html +23 -0
- data/_layouts/archive.html +11 -0
- data/_layouts/default.html +10 -53
- data/_layouts/home.html +41 -0
- data/_layouts/post.html +9 -14
- data/_sass/_base.scss +12 -12
- data/assets/css/github-markdown.css +1254 -0
- data/assets/css/style.css +79 -13
- data/assets/js/sobekyll.js +4 -0
- data/publish.sh +1 -1
- data/sobekyll.gemspec +2 -2
- metadata +11 -4
data/assets/css/style.css
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
/* @import "../../_sass/_base.scss"; */
|
2
|
-
|
3
1
|
:root {
|
4
2
|
--border-width: max(1px, 0.0625rem);
|
5
3
|
}
|
6
4
|
|
7
|
-
|
5
|
+
/* 基础样式 */
|
6
|
+
html,
|
7
|
+
body {
|
8
|
+
width: 100%;
|
8
9
|
height: 100%;
|
9
10
|
overflow: hidden;
|
10
11
|
padding: 0px;
|
@@ -16,6 +17,33 @@ s-page {
|
|
16
17
|
height: 100%;
|
17
18
|
}
|
18
19
|
|
20
|
+
.author {
|
21
|
+
width: 100%;
|
22
|
+
height: 256px;
|
23
|
+
display: flex;
|
24
|
+
flex-direction: column;
|
25
|
+
align-items: center;
|
26
|
+
justify-content: center;
|
27
|
+
background-image: linear-gradient(22.5deg, #43434305 0%, #43434305 29%, #2f2f2f05 29%, #2f2f2f05 37%, #17171705 37%, #17171705 55%, #b6b6b605 55%, #b6b6b605 69%, #1b1b1b05 69%, #1b1b1b05 71%, #fafafa05 71%, #fafafa05 100%), linear-gradient(67.5deg, #75757505 0%, #75757505 14%, #c7c7c705 14%, #c7c7c705 40%, #21212105 40%, #21212105 48%, #87878705 48%, #87878705 60%, #94949405 60%, #94949405 95%, #35353505 95%, #35353505 100%), linear-gradient(135deg, #bebebe05 0%, #bebebe05 6%, #fbfbfb05 6%, #fbfbfb05 18%, #02020205 18%, #02020205 27%, #fdfdfd05 27%, #fdfdfd05 49%, #80808005 49%, #80808005 76%, #96969605 76%, #96969605 100%);
|
28
|
+
}
|
29
|
+
|
30
|
+
.author-avatar {
|
31
|
+
width: 60px;
|
32
|
+
/* 缩小头像以适应移动端 */
|
33
|
+
height: 60px;
|
34
|
+
border: 1px var(--s-color-outline-variant) solid;
|
35
|
+
border-radius: 50%;
|
36
|
+
/* 保持圆形 */
|
37
|
+
object-fit: cover;
|
38
|
+
}
|
39
|
+
|
40
|
+
.author-name {
|
41
|
+
margin-top: 8px;
|
42
|
+
font-weight: bold;
|
43
|
+
font-size: 1rem;
|
44
|
+
/* 缩小字体 */
|
45
|
+
}
|
46
|
+
|
19
47
|
main {
|
20
48
|
display: flex;
|
21
49
|
flex-direction: column;
|
@@ -24,42 +52,68 @@ main {
|
|
24
52
|
.app-bar-title {
|
25
53
|
font-weight: bold;
|
26
54
|
text-decoration: none;
|
55
|
+
font-size: 1.25rem;
|
56
|
+
}
|
57
|
+
|
58
|
+
.app-bar-action {
|
59
|
+
border-radius: 4px;
|
27
60
|
}
|
28
61
|
|
29
62
|
main s-scroll-view {
|
63
|
+
width: 100%;
|
30
64
|
flex-grow: 1;
|
31
65
|
}
|
32
66
|
|
67
|
+
.contentWrapper {
|
68
|
+
height: 100%;
|
69
|
+
display: flex;
|
70
|
+
flex-direction: column;
|
71
|
+
background-image: linear-gradient(22.5deg, #43434305 0%, #43434305 29%, #2f2f2f05 29%, #2f2f2f05 37%, #17171705 37%, #17171705 55%, #b6b6b605 55%, #b6b6b605 69%, #1b1b1b05 69%, #1b1b1b05 71%, #fafafa05 71%, #fafafa05 100%), linear-gradient(67.5deg, #75757505 0%, #75757505 14%, #c7c7c705 14%, #c7c7c705 40%, #21212105 40%, #21212105 48%, #87878705 48%, #87878705 60%, #94949405 60%, #94949405 95%, #35353505 95%, #35353505 100%), linear-gradient(135deg, #bebebe05 0%, #bebebe05 6%, #fbfbfb05 6%, #fbfbfb05 18%, #02020205 18%, #02020205 27%, #fdfdfd05 27%, #fdfdfd05 49%, #80808005 49%, #80808005 76%, #96969605 76%, #96969605 100%);
|
72
|
+
}
|
73
|
+
|
33
74
|
.content {
|
34
75
|
flex: 1;
|
35
76
|
display: flex;
|
36
77
|
flex-direction: column;
|
37
78
|
padding: 24px;
|
79
|
+
/* 减少内边距以适配小屏 */
|
38
80
|
}
|
39
81
|
|
40
82
|
.post-item {
|
41
|
-
margin-bottom:
|
83
|
+
margin-bottom: 16px;
|
84
|
+
/* 减小间距 */
|
42
85
|
border-bottom: var(--border-width) solid var(--s-color-outline-variant);
|
86
|
+
padding-bottom: 8px;
|
87
|
+
/* 添加间距以区分内容 */
|
43
88
|
}
|
44
89
|
|
45
90
|
.post-item-title {
|
46
91
|
color: var(--color-on-background);
|
47
92
|
text-decoration: none;
|
93
|
+
font-size: 1.25rem;
|
94
|
+
/* 调整标题大小 */
|
48
95
|
}
|
49
96
|
|
50
97
|
.post-item h3 {
|
51
|
-
font-size: 1.
|
98
|
+
font-size: 1.25rem;
|
52
99
|
margin: 0;
|
53
100
|
}
|
54
101
|
|
55
102
|
.post-meta {
|
56
|
-
font-size: 0.
|
103
|
+
font-size: 0.875rem;
|
104
|
+
/* 缩小字体 */
|
57
105
|
color: gray;
|
58
106
|
}
|
59
107
|
|
108
|
+
.post-meta a {
|
109
|
+
font-weight: bold;
|
110
|
+
color: var(--color-on-surface-variant);
|
111
|
+
text-decoration: none;
|
112
|
+
}
|
113
|
+
|
60
114
|
.post-excerpt {
|
61
|
-
font-size:
|
62
|
-
|
115
|
+
font-size: 1rem;
|
116
|
+
margin-top: 8px;
|
63
117
|
}
|
64
118
|
|
65
119
|
.pagination {
|
@@ -76,24 +130,36 @@ main s-scroll-view {
|
|
76
130
|
flex-direction: row;
|
77
131
|
align-items: center;
|
78
132
|
justify-content: center;
|
79
|
-
}
|
133
|
+
}
|
80
134
|
|
81
135
|
article {
|
82
136
|
flex: 1;
|
83
137
|
display: flex;
|
84
138
|
flex-direction: column;
|
85
139
|
}
|
140
|
+
|
86
141
|
.post-content {
|
142
|
+
max-width: 100%;
|
143
|
+
padding-top: 24px;
|
144
|
+
padding-bottom: 24px;
|
87
145
|
flex: 1;
|
88
146
|
border-top: var(--border-width) solid var(--s-color-outline-variant);
|
89
147
|
border-bottom: var(--border-width) solid var(--s-color-outline-variant);
|
90
148
|
}
|
91
149
|
|
150
|
+
.markdown-body {
|
151
|
+
background-color: transparent;
|
152
|
+
min-height: 0px;
|
153
|
+
}
|
154
|
+
|
92
155
|
.highlight {
|
93
156
|
border-radius: 8px;
|
94
|
-
padding
|
95
|
-
padding-bottom: 1px;
|
96
|
-
padding-left: 8px;
|
97
|
-
padding-right: 8px;
|
157
|
+
padding: 4px;
|
98
158
|
margin-bottom: 8px;
|
159
|
+
}
|
160
|
+
|
161
|
+
footer a {
|
162
|
+
text-decoration: none;
|
163
|
+
font-weight: bold;
|
164
|
+
color: var(--color-on-surface-variant);
|
99
165
|
}
|
data/assets/js/sobekyll.js
CHANGED
data/publish.sh
CHANGED
@@ -1 +1 @@
|
|
1
|
-
gem push sobekyll-0.1.
|
1
|
+
gem push sobekyll-0.1.3.gem
|
data/sobekyll.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "sobekyll" # 你的主题名称
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.2.0" # 版本号
|
4
4
|
s.summary = "A material design style Jekyll theme based on Sober." # 简短描述
|
5
5
|
s.description = "A material design style Jekyll theme based on Sober." # 详细描述
|
6
6
|
s.authors = ["boybeak"]
|
@@ -11,5 +11,5 @@ Gem::Specification.new do |s|
|
|
11
11
|
end
|
12
12
|
s.homepage = "https://github.com/boybeak/sobekyll"
|
13
13
|
s.required_ruby_version = ">= 2.5.0"
|
14
|
-
s.add_runtime_dependency "jekyll", "~>
|
14
|
+
s.add_runtime_dependency "jekyll", "~> 3.10.0"
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sobekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boybeak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.10.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.10.0
|
27
27
|
description: A material design style Jekyll theme based on Sober.
|
28
28
|
email: boybeak@gmail.com
|
29
29
|
executables: []
|
@@ -35,10 +35,17 @@ files:
|
|
35
35
|
- LICENSE
|
36
36
|
- README.md
|
37
37
|
- _config.yml
|
38
|
+
- _includes/footer.html
|
39
|
+
- _includes/header.html
|
38
40
|
- _includes/post-item.html
|
41
|
+
- _includes/slide-panel.html
|
42
|
+
- _includes/time.html
|
43
|
+
- _layouts/archive.html
|
39
44
|
- _layouts/default.html
|
45
|
+
- _layouts/home.html
|
40
46
|
- _layouts/post.html
|
41
47
|
- _sass/_base.scss
|
48
|
+
- assets/css/github-markdown.css
|
42
49
|
- assets/css/rouge-github-auto.css
|
43
50
|
- assets/css/style.css
|
44
51
|
- assets/js/sobekyll.js
|