jekyll-zeta 0.7.5.1 → 0.9.1

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.
@@ -3,18 +3,18 @@ layout: default
3
3
  ---
4
4
 
5
5
 
6
- {%- if page.heatmap -%}
7
- {%- include heatmap.html -%}
8
- {%- endif -%}
9
6
  {%- assign titlelen = page.title.size -%}
10
7
  {%- if titlelen > 0 -%}
11
8
  <!-- <h2>{{ page.title }}</h2> -->
12
9
  {%- endif -%}
13
10
 
14
11
  {%-assign posts = site.posts-%}
12
+
15
13
  {%- if posts.size > 0 -%}
16
14
  {%- include archive_list.html
17
15
  collection=posts
16
+
17
+ showheatmap = page.heatmap
18
18
  -%}
19
19
  {%- endif -%}
20
20
 
@@ -3,7 +3,10 @@
3
3
  {%- include head.html -%}
4
4
  <body a="{{ site.theme_config.appearance | default: "auto" }}">
5
5
  <main class="page-content" aria-label="Content">
6
-
6
+
7
+ {%- if site.theme_config.navbarPosition == 'left' -%}
8
+ {%- include page_frame_left.html -%}
9
+ {%- else -%}
7
10
  <div class="w">
8
11
  {%- include navbar.html -%}
9
12
  {{ content }}
@@ -16,6 +19,9 @@
16
19
  </footer>
17
20
  {%- endif -%}
18
21
  </div>
22
+ {%- endif -%}
23
+
24
+
19
25
  </main>
20
26
 
21
27
  {%-if site.goat_counter and jekyll.environment == "production"-%}
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
4
+
5
5
  <br/><br/><br/>
6
6
  {%- include heatmap.html -%}
7
7
 
data/_sass/common.scss ADDED
@@ -0,0 +1,336 @@
1
+
2
+ $color-red: #FF0000;
3
+ $color-black: #333;
4
+ $color-blue: #0064c1;
5
+ $color-hove: #0064c1;
6
+ $color-gray: #9ca3af;
7
+ $color-lightGray: #9ca3af;
8
+ $color-lightGrayBg: #F0f2f4;
9
+
10
+ $dbgBorder:none;//ssolid 1px red;
11
+
12
+
13
+
14
+
15
+ // $hmbloksizeW:11px;
16
+
17
+ li {
18
+ padding: 0.2rem;
19
+ }
20
+
21
+ main{
22
+ margin: 2.5em 0;
23
+ }
24
+ body{
25
+ font-family: monospace;
26
+ font-size: 1.15rem;
27
+ // background-color: #fafafa;
28
+ margin: 0;
29
+
30
+ // &::before{
31
+ // content: "";
32
+ // position: fixed;
33
+ // left: 0;
34
+ // right: 0;
35
+ // top: 0;
36
+ // bottom: 0;
37
+
38
+ // // background-image: url(../image/bg-2.png) ;
39
+ // // background-color: #fffef8 ;//#fffef9;
40
+ // z-index: -1;
41
+ // // filter: grayscale(0.8);
42
+ // // opacity: 0.9;
43
+ // }
44
+ }
45
+
46
+ article{
47
+ line-height: 1.6;
48
+ }
49
+ .w {
50
+ margin: auto;
51
+ word-wrap: break-word;
52
+ background-color: white;
53
+ // box-shadow: 0 2px 3px 0 #eee
54
+ }
55
+
56
+ code.highlighter-rouge {
57
+ color: $color-black;
58
+ background: $color-lightGrayBg;
59
+ border-radius: 5px;
60
+ padding: 0 5px;
61
+ margin: 5px;
62
+ }
63
+
64
+ code {
65
+ color: $color-black;
66
+ background: $color-lightGrayBg;;
67
+ max-height: 35rem;
68
+ }
69
+
70
+ div.highlighter-rouge code {
71
+ border-radius: 10px;
72
+ display: block;
73
+ overflow: auto;
74
+ padding: 1rem;
75
+ }
76
+
77
+ img {
78
+ width: 60%;
79
+ display: block;
80
+ margin: 0 auto;
81
+ }
82
+
83
+ blockquote {
84
+ font-style: italic;
85
+ border-left: 5px solid #22a2c3;
86
+ border-radius: 5px;
87
+ color: #999;
88
+ // padding: 2rem 0.25rem .25rem 0.25rem;
89
+ padding: 0.3rem 1rem;
90
+ margin: 1rem 0;
91
+ background-color: $color-lightGrayBg;
92
+
93
+
94
+ // &::before{
95
+ // content: "";
96
+ // display: block;
97
+ // background: url(../image/quote.svg) no-repeat 50% 50%;
98
+ // width: 27px;
99
+ // height: 20px;
100
+ // position: absolute;
101
+ // z-index: 1;
102
+
103
+ // margin-left: -10px;
104
+ // margin-top: -24px;
105
+ // opacity: 0.1;
106
+
107
+ // }
108
+ }
109
+
110
+ blockquote p {
111
+ margin: 0
112
+ }
113
+
114
+ table {
115
+ width: 100%;
116
+ }
117
+ table{
118
+ box-shadow: 0px 0px 5px #e0e0e0;
119
+ }
120
+ th{
121
+ background-color: #f5f5f5;
122
+ }
123
+ table,
124
+ th,
125
+ td {
126
+ border: thin solid #e0e0e0;
127
+ border-collapse: collapse;
128
+ padding: 0.4em 1em ;
129
+ }
130
+ tr:nth-child(even){
131
+ background-color: #f5f5f5;
132
+ }
133
+
134
+ // hr {
135
+ // margin-top: 2rem;
136
+ // margin-bottom: 2rem;
137
+
138
+
139
+ // border: 0;
140
+ // padding: 3px;
141
+
142
+ // background: repeating-linear-gradient(135deg, #000 0px, #000 1px, transparent 1px, transparent 5px);
143
+ // }
144
+
145
+ hr{
146
+ margin: 2rem 0;
147
+ border:none;
148
+ text-align: center;
149
+ color: $color-gray;
150
+ border-bottom: $color-lightGray dashed 1px;
151
+ }
152
+
153
+
154
+ a {
155
+ text-decoration: none;
156
+ color: $color-blue;
157
+ }
158
+
159
+
160
+ .w > h1>a {
161
+ color: $color-black;
162
+ }
163
+
164
+ .w > h1>a:hover {
165
+ color: $color-black;
166
+ }
167
+
168
+
169
+ nav{
170
+ /* 这个只是固定在页面上面 */
171
+ position: relative;
172
+ align-content: center;
173
+ }
174
+
175
+ .navul {
176
+ padding: 0;
177
+ display: flex;
178
+ font-weight: 700;
179
+ align-items: center;
180
+ }
181
+
182
+ .navli {
183
+ list-style-type: none;
184
+ margin-right: 1rem;
185
+ font-size: 1.125rem;
186
+ }
187
+
188
+ .postlistul {
189
+ padding: 0
190
+ }
191
+
192
+ .postlistli {
193
+ list-style-type: none;
194
+ display: flex;
195
+ align-items: first baseline;
196
+ padding: 5px 0;
197
+
198
+ }
199
+
200
+ .postlistli a,.pagebar a ,.tags-tag{
201
+ color: #000;
202
+ }
203
+
204
+ span.next{
205
+ color: #c3c3c3;
206
+ }
207
+
208
+ date {
209
+ color: $color-lightGray;
210
+ font-size: 0.9em;
211
+ margin-right: 1em;
212
+ }
213
+
214
+ time {
215
+ color: $color-lightGray;
216
+ font-weight: 500;
217
+ }
218
+ .tag {
219
+ color: $color-lightGray;
220
+ font-weight: 500;
221
+ }
222
+
223
+
224
+
225
+ .pagebar {
226
+ margin-top: 2rem;
227
+ display: flex;
228
+ // float: right;
229
+ align-items: baseline;
230
+ }
231
+
232
+ .page_number {
233
+ color: $color-black;
234
+ padding-left: 10px;
235
+ padding-right: 10px;
236
+ text-align: center;
237
+ }
238
+
239
+ .largeli {
240
+ font-weight: bolder;
241
+ color: $color-black;
242
+ font-size: 1.6rem;
243
+ padding: 2.25rem 1rem 0.5rem 0;
244
+ }
245
+
246
+ .largeli0 {
247
+ padding: 0 0 0.5rem 0;
248
+ }
249
+
250
+ .footer{
251
+ margin-top: 4rem;
252
+ color: #aaa;
253
+ width: 100%;
254
+ font-size: 0.9rem;
255
+ text-align: center;
256
+ }
257
+
258
+ .footer a {
259
+ color: #808080;
260
+ }
261
+
262
+ a:hover {
263
+ text-decoration: underline;
264
+ color:$color-hove;
265
+ }
266
+
267
+ .curNav > .nav{
268
+
269
+
270
+ color: #55bb8a;
271
+ }
272
+
273
+ .nav{
274
+ color: $color-black;
275
+ }
276
+
277
+ input[type="button"]{
278
+ /* 设置按钮的背景色,字体样式等 */
279
+ background-color: #e0e0e0;
280
+ border: none;
281
+ color: $color-black;
282
+ padding: 5px 12px;
283
+ text-align: center;
284
+ text-decoration: none;
285
+ display: inline-block;
286
+ font-size: 0.8em;
287
+
288
+ cursor: pointer;
289
+ border-radius: 3px;
290
+ /* 鼠标悬停时改变按钮颜色 */
291
+ }
292
+ input[type="button"]:hover{
293
+ background-color: $color-black;
294
+ color: white;
295
+ }
296
+
297
+
298
+ pre{
299
+ white-space: pre-wrap; /* 保留空白字符,但是允许自动换行 */
300
+ overflow-wrap: break-word; /* 在单词内允许换行 */
301
+ }
302
+
303
+ pre>code{
304
+ background-color: #1e131eff;
305
+ color: #e7e7b1;
306
+ box-shadow: 0px 0px 8px #000;
307
+ }
308
+
309
+ pre>code::before {
310
+ content: url('../image/dots.svg');
311
+ display: block;
312
+ margin-top:-1rem;
313
+ }
314
+
315
+
316
+ img{
317
+ max-width: 80%;
318
+
319
+ }
320
+
321
+ .iconchar{
322
+ margin-left: 10px;
323
+ // filter: grayscale(0.1) brightness(0.6);
324
+ font-size: 0.6em;
325
+ }
326
+
327
+
328
+ .archive-map{
329
+ padding-bottom: 1rem;
330
+ }
331
+
332
+
333
+ .avatar{
334
+ width: 76px;
335
+ height: 76px;
336
+ }
@@ -0,0 +1,175 @@
1
+
2
+ $hmbloksizeH:13px;
3
+ $dayGap:1px;
4
+ $heatFont:Georgia,"Nimbus Roman No9 L","Songti SC",STSong,"AR PL New Sung","AR PL SungtiL GB",NSimSun,SimSun,"TW\-Sung","WenQuanYi Bitmap Song","AR PL UMing CN","AR PL UMing HK","AR PL UMing TW","AR PL UMing TW MBE",sans-serif;
5
+
6
+ .heatmap{
7
+ display: grid;
8
+ grid-template-rows: auto 1fr;
9
+ grid-template-columns: auto 1fr;
10
+ max-width: 640px;
11
+ }
12
+
13
+ .heatmap-title{
14
+ color: $color-black;
15
+ font-size: 1.6rem;
16
+ font-weight: 600;
17
+ padding:3rem 0rem 0.2rem 0;
18
+ }
19
+
20
+
21
+ .heatmap-month{
22
+
23
+ grid-column-start: 2;
24
+ grid-column-end: 3;
25
+
26
+ display: grid;
27
+ grid-template-columns: repeat(12,1fr);
28
+
29
+ border: $dbgBorder;
30
+
31
+ }
32
+
33
+
34
+ .heatmap-month-cell{
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+
39
+ font-family: $heatFont;
40
+ font-size: 0.8rem;
41
+
42
+ height: 12px;
43
+
44
+ padding: 0.2em 0;
45
+
46
+ }
47
+
48
+
49
+ .heatmap-week{
50
+
51
+ grid-row-start: 2;
52
+ grid-row-end: 3;
53
+ display: grid;
54
+ // grid-template-rows:repeat(4,1fr);
55
+
56
+
57
+ grid-auto-flow: row;
58
+ height: $hmbloksizeH * 7 + $dayGap * 6;
59
+ }
60
+
61
+
62
+ .heatmap-week-cell{
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ padding-right: 0.2em;
67
+ font-size: 0.8rem;
68
+ font-family: $heatFont
69
+ }
70
+
71
+ .heatmap-day{
72
+
73
+ display: grid;
74
+ grid-template-columns: repeat(53,1fr);
75
+ grid-template-rows: repeat(7,1fr);
76
+ grid-auto-flow: column;
77
+ gap: $dayGap;
78
+ }
79
+
80
+ .heatmap-day-cell{
81
+
82
+ border-radius: 2px;
83
+ // height: 20px;
84
+ // width: $hmbloksizeW;
85
+ height: $hmbloksizeH;
86
+ }
87
+
88
+ .heatmap-day-cell a{
89
+ height: 100%;
90
+ width: 100%;
91
+ display: block;
92
+ white-space: nowrap;
93
+ overflow:hidden;
94
+ }
95
+
96
+
97
+ .hm-check-nodata{
98
+ background-color: #93d5dc;
99
+ }
100
+
101
+ .hm-check{
102
+ background-color: #40c463bb;
103
+ position: relative;
104
+ cursor: pointer;
105
+ }
106
+
107
+ .hm-check2{
108
+ background-color: #40c463ff;
109
+ position: relative;
110
+ }
111
+
112
+ .hm-check-no-a{
113
+ background-color: #edebf0;;
114
+ }
115
+
116
+
117
+ .hm-check-no-b{
118
+ background-color: #edebf0aa;
119
+ }
120
+
121
+ .heatmap-day-cell:hover{
122
+ transform: scale(1.3);
123
+ z-index: 999;
124
+ }
125
+
126
+ .heatmap-day-cell:hover .hm-tip{
127
+ display: block;
128
+ }
129
+
130
+ .hm-tip{
131
+ position: absolute; /* 让子元素浮动 */
132
+ bottom: 100%;
133
+ left: 50%;
134
+ transform: translateX(-50%);
135
+ background-color: rgba(0, 0, 0, 0.8);
136
+ color: white;
137
+ padding: 10px;
138
+ border-radius: 5px;
139
+ z-index: 999;
140
+
141
+ width: auto;
142
+ font-size: 0.8rem;
143
+ display: none;
144
+ }
145
+
146
+ .hm-date{
147
+ color: #fff;
148
+ text-align: center;
149
+
150
+ padding: 0;
151
+ }
152
+
153
+ .hm-title{
154
+ color: #fff;
155
+ white-space: nowrap;
156
+ overflow:hidden;
157
+ text-overflow: ellipsis;
158
+ text-align: left;
159
+ padding-left:0.5rem;
160
+
161
+ max-width: 600px;
162
+
163
+ }
164
+
165
+ .hm-tiplink{
166
+ padding: 0.2rem 0;
167
+ }
168
+
169
+ .red{
170
+ background-color: #ee5500;
171
+ }
172
+
173
+ .border{
174
+ border:solid 1px red;
175
+ }
@@ -0,0 +1,99 @@
1
+ @import "common";
2
+ @import "heatmap";
3
+
4
+
5
+
6
+
7
+ $contentWidth:52rem;
8
+ $siderbarW:8rem;
9
+ body{
10
+ font-size: 1.25rem;
11
+ }
12
+
13
+
14
+ body{
15
+ padding: 0;
16
+ }
17
+
18
+
19
+ .w {
20
+ margin:auto;
21
+ max-width:$contentWidth ;
22
+ padding-left: 2rem;
23
+ padding-right: 2rem;
24
+ padding-top: 4rem ;
25
+ padding-bottom: 4rem ;
26
+ word-wrap: break-word;
27
+ background-color: white;
28
+
29
+ }
30
+
31
+
32
+ .sidebar{
33
+
34
+ height: 100%;
35
+ padding-right: 1rem;
36
+ padding-top: 6rem;
37
+ position: fixed;
38
+ top: 0;
39
+ width: $siderbarW;
40
+ right: calc(50% + #{$contentWidth} / 2 );
41
+
42
+ }
43
+
44
+ .sidecontent{
45
+ // position: absolute;
46
+ left: 2rem;
47
+ bottom: 2rem;
48
+
49
+ }
50
+
51
+ .sidetitle{
52
+ font-size: 1.2rem;
53
+ font-weight: 600;
54
+ }
55
+
56
+ .navul {
57
+ padding: 0;
58
+ display:block;
59
+ font-weight: 700;
60
+ align-items: center;
61
+ }
62
+
63
+
64
+ .navli{
65
+ padding: 1rem 0;
66
+ }
67
+
68
+ nav{
69
+ text-align: end;
70
+ padding-right: 2rem;
71
+ }
72
+
73
+
74
+ .rightsidecontent{
75
+ margin:auto;
76
+ max-width: $contentWidth + $siderbarW ;
77
+
78
+ padding-left: $siderbarW ;
79
+ // justify-content: center;
80
+ }
81
+
82
+
83
+ // @media screen and (max-width: 90000px){
84
+ // $siderbarW:0;
85
+ // .navul{
86
+ // display: flex;
87
+ // }
88
+ // .sidebar{
89
+
90
+ // padding-right: 1rem;
91
+ // padding-top: 6rem;
92
+ // width: $siderbarW;
93
+
94
+ // }
95
+
96
+ // }
97
+
98
+
99
+