jekyll-zeta 0.3.11 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +9 -4
- data/_includes/archive_list.html +2 -1
- data/_includes/navbar.html +16 -3
- data/_includes/post_list.html +2 -1
- data/_layouts/post.html +1 -1
- data/_layouts/tags.html +1 -1
- data/_sass/jekyll-zeta.scss +65 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baed2725fd84d0e3789c502b5dbfd514ef1a9f35114f36562a2b33732976da76
|
4
|
+
data.tar.gz: 1dea39385d1906e0db75cf36dabd4e9a3d9d4b38a1c3384529524ba51a79d26e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da4e5c905dacc4ed4ac4b4c98d525966fbef60f6d019659e377f503c17741c1dd034cf1fce21a0f68fa208d22a036c58e08e42a62cc608a0abbb8fe6e5b8855
|
7
|
+
data.tar.gz: 63e377486df95b831f14ccf78164c1e0bf2a5efbabcf2a90e8e17b0122b8ffa7f3c2ce3fb3cdfbe29eff653fcb2f65ff79b65e0519853774db0697d37854a80d
|
data/_config.yml
CHANGED
@@ -17,7 +17,7 @@ favicon: "logo.png" # name+extension of favicon (which must be put on the root f
|
|
17
17
|
|
18
18
|
theme_config:
|
19
19
|
appearance: "auto" # can be "light", "dark" or "auto"
|
20
|
-
date_format: "%
|
20
|
+
date_format: "%m/%d" # customize how date is formatted
|
21
21
|
post_date_format: "%Y/%m/%d"
|
22
22
|
encrypt_title: "Content is Encryped :)"
|
23
23
|
# encrypt_clear_btn: "清空缓存密码"
|
@@ -27,8 +27,8 @@ theme_config:
|
|
27
27
|
all_tags_path: tags
|
28
28
|
all_tags_title: All Tags
|
29
29
|
archive_date_format: "%Y"
|
30
|
-
archive_title_date_format: "%m
|
31
|
-
tags_layout_style: '
|
30
|
+
archive_title_date_format: "%m/%d"
|
31
|
+
tags_layout_style: 'flat' # flat auto list
|
32
32
|
combine_css_html: false
|
33
33
|
show_more_text: 'show more ...'
|
34
34
|
next_page_title: "next"
|
@@ -36,12 +36,17 @@ theme_config:
|
|
36
36
|
lock_path: "assets/image/lock4.png"
|
37
37
|
show_footnote: true
|
38
38
|
menu:
|
39
|
-
- title:
|
39
|
+
- title: Posts
|
40
40
|
url: /
|
41
|
+
subpath:
|
42
|
+
- /post/
|
43
|
+
- /pages/
|
41
44
|
- title: Achive
|
42
45
|
url: /archive.html
|
43
46
|
- title: Tags
|
44
47
|
url: /tags.html
|
48
|
+
subpath:
|
49
|
+
- /tags/
|
45
50
|
- title: About
|
46
51
|
url: /about.html
|
47
52
|
|
data/_includes/archive_list.html
CHANGED
@@ -28,6 +28,7 @@
|
|
28
28
|
{%- assign ymPre = ymCur -%}
|
29
29
|
|
30
30
|
<li class="postlistli">
|
31
|
+
<date datetime="{{post.date}}">{{- post.date | date: archive_date_titleformat }}</date>
|
31
32
|
{%- if lock_path.size > 0 -%}
|
32
33
|
{%- assign encid = "" | get_encrypt_id:post | default: "" -%}
|
33
34
|
{%- if encid.size > 1 -%}
|
@@ -41,7 +42,7 @@
|
|
41
42
|
{%- else -%}
|
42
43
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
43
44
|
{%- endif -%}
|
44
|
-
|
45
|
+
|
45
46
|
</li>
|
46
47
|
{%- endfor -%}
|
47
48
|
</ul>
|
data/_includes/navbar.html
CHANGED
@@ -4,15 +4,28 @@
|
|
4
4
|
{%- capture currentUrl -%}{{ page.url | relative_url}}{%- endcapture %}
|
5
5
|
<nav>
|
6
6
|
<ul class="navul">
|
7
|
+
|
7
8
|
{%-for item in site.theme_config.menu %}
|
8
9
|
<li class="navli">
|
9
10
|
{%- if item.url -%}
|
10
11
|
{%- capture itemurl -%}{{ item.url | relative_url}}{%- endcapture -%}
|
12
|
+
|
13
|
+
{%- assign iscurrent= false %}
|
14
|
+
{%- if currentUrl == itemurl -%}
|
15
|
+
{%- assign iscurrent= true %}
|
16
|
+
{%- else -%}
|
17
|
+
{%- for subpath in item.subpath %}
|
18
|
+
{%- if currentUrl contains subpath %}
|
19
|
+
{%- assign iscurrent= true %}
|
20
|
+
{%- break %}
|
21
|
+
{%- endif %}
|
22
|
+
{%- endfor %}
|
23
|
+
{%- endif %}
|
11
24
|
|
12
|
-
{%- if
|
13
|
-
<
|
25
|
+
{%- if iscurrent == true -%}
|
26
|
+
<a href="{{ itemurl }}" class="curNav">{{ item.title }}</a>
|
14
27
|
{%- else -%}
|
15
|
-
<a href="{{ itemurl }}">{{ item.title }}</a>
|
28
|
+
<a href="{{ itemurl }}" class="nav">{{ item.title }}</a>
|
16
29
|
{%- endif - -%}
|
17
30
|
|
18
31
|
{%- else -%}
|
data/_includes/post_list.html
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
<ul class="postlistul">
|
15
15
|
{%- for post in posts limit: include.limit -%}
|
16
16
|
<li class="postlistli">
|
17
|
+
<date>{{- post.date | date: site.theme_config.date_format -}}</date>
|
17
18
|
{%- if lock_path.size > 0 -%}
|
18
19
|
{%- assign encid = "" | get_encrypt_id:post | default: "" -%}
|
19
20
|
{%- if encid.size > 1 -%}
|
@@ -27,7 +28,7 @@
|
|
27
28
|
{%- else -%}
|
28
29
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
29
30
|
{%- endif -%}
|
30
|
-
|
31
|
+
|
31
32
|
</li>
|
32
33
|
{%- endfor -%}
|
33
34
|
{%- if include.show_more and limit_exceeded -%}
|
data/_layouts/post.html
CHANGED
@@ -8,7 +8,7 @@ layout: default
|
|
8
8
|
<time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.post_date_format }}</time>
|
9
9
|
{%- for tag in page.tags -%}
|
10
10
|
{%- capture tag_name -%}{{ tag }}{%- endcapture -%}
|
11
|
-
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
11
|
+
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html" class="tag"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
12
12
|
{%- endfor -%}
|
13
13
|
|
14
14
|
<article>
|
data/_layouts/tags.html
CHANGED
@@ -43,7 +43,7 @@ layout: default
|
|
43
43
|
{%- capture counter -%}{%- increment counter -%} {%- endcapture -%}
|
44
44
|
|
45
45
|
|
46
|
-
<text><a href ="{{'/tags'|relative_url}}/{{ tagname}}.html" >{{ tagname}}</a> <sup>{{ tagnameCount }}</sup></text>
|
46
|
+
<text><a class="tags-tag" href ="{{'/tags'|relative_url}}/{{ tagname}}.html" >{{ tagname}}</a> <sup>{{ tagnameCount }}</sup></text>
|
47
47
|
|
48
48
|
{%- endfor -%}
|
49
49
|
{%- else -%}
|
data/_sass/jekyll-zeta.scss
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
$color-red: #FF0000;
|
2
|
+
$color-black: #333;
|
3
|
+
$color-blue: #0064c1;
|
4
|
+
$color-hove: #0064c1;
|
5
|
+
$color-gray: #9ca3af;
|
6
|
+
$color-lightGray: #9ca3af;
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
1
11
|
li {
|
2
12
|
padding: 0.2rem;
|
3
13
|
}
|
@@ -18,7 +28,7 @@ article{
|
|
18
28
|
}
|
19
29
|
|
20
30
|
code.highlighter-rouge {
|
21
|
-
color:
|
31
|
+
color: $color-black;
|
22
32
|
background: #F0f2f4;
|
23
33
|
border-radius: 3px;
|
24
34
|
padding: 0 5px;
|
@@ -26,7 +36,7 @@ code.highlighter-rouge {
|
|
26
36
|
}
|
27
37
|
|
28
38
|
code {
|
29
|
-
color:
|
39
|
+
color: $color-black;
|
30
40
|
background: #F0f2f4;
|
31
41
|
max-height: 35rem;
|
32
42
|
}
|
@@ -82,34 +92,33 @@ hr {
|
|
82
92
|
|
83
93
|
|
84
94
|
border: 0;
|
85
|
-
padding:
|
95
|
+
padding: 3px;
|
86
96
|
|
87
|
-
background: repeating-linear-gradient(
|
97
|
+
background: repeating-linear-gradient(135deg, #000 0px, #000 1px, transparent 1px, transparent 5px);
|
88
98
|
}
|
89
99
|
|
90
100
|
|
91
101
|
|
92
|
-
|
93
|
-
text-decoration: underline;
|
94
|
-
color: #f00000;
|
95
|
-
}
|
102
|
+
|
96
103
|
|
97
104
|
a {
|
98
105
|
text-decoration: none;
|
99
|
-
color:
|
106
|
+
color: $color-blue;
|
100
107
|
}
|
101
108
|
|
102
109
|
.w > h1>a {
|
103
|
-
color:
|
110
|
+
color: $color-black;
|
104
111
|
}
|
105
112
|
|
106
113
|
.w > h1>a:hover {
|
107
|
-
color:
|
114
|
+
color: $color-black;
|
108
115
|
}
|
109
116
|
|
110
117
|
.navul {
|
111
118
|
padding: 0;
|
112
119
|
display: flex;
|
120
|
+
font-weight: 700;
|
121
|
+
align-items: center;
|
113
122
|
}
|
114
123
|
|
115
124
|
.navli {
|
@@ -117,7 +126,7 @@ a {
|
|
117
126
|
margin-right: 1rem;
|
118
127
|
font-size: 1.125rem;
|
119
128
|
}
|
120
|
-
|
129
|
+
|
121
130
|
.postlistul {
|
122
131
|
padding: 0
|
123
132
|
}
|
@@ -125,19 +134,40 @@ a {
|
|
125
134
|
.postlistli {
|
126
135
|
list-style-type: none;
|
127
136
|
display: flex;
|
128
|
-
justify-content: space-between;
|
129
|
-
align-items:
|
137
|
+
// justify-content: space-between;
|
138
|
+
align-items: first baseline;
|
139
|
+
padding: 10px 0;
|
130
140
|
|
131
141
|
}
|
132
142
|
|
133
|
-
.
|
134
|
-
color: #
|
135
|
-
font-weight: 700;
|
143
|
+
.postlistli a,.pagebar a ,.tags-tag{
|
144
|
+
color: #000;
|
136
145
|
}
|
137
146
|
|
138
|
-
|
139
|
-
|
147
|
+
|
148
|
+
span.next{
|
149
|
+
color: #c3c3c3;
|
140
150
|
}
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
date {
|
156
|
+
color: $color-lightGray;
|
157
|
+
font-size: 0.9em;
|
158
|
+
margin-right: 1em;
|
159
|
+
}
|
160
|
+
|
161
|
+
time {
|
162
|
+
color: $color-lightGray;
|
163
|
+
font-weight: 500;
|
164
|
+
}
|
165
|
+
.tag {
|
166
|
+
color: $color-lightGray;
|
167
|
+
font-weight: 500;
|
168
|
+
}
|
169
|
+
|
170
|
+
|
141
171
|
|
142
172
|
.pagebar {
|
143
173
|
margin-top: 2rem;
|
@@ -147,7 +177,7 @@ date {
|
|
147
177
|
}
|
148
178
|
|
149
179
|
.page_number {
|
150
|
-
color:
|
180
|
+
color: $color-black;
|
151
181
|
padding-left: 10px;
|
152
182
|
padding-right: 10px;
|
153
183
|
text-align: center;
|
@@ -155,7 +185,7 @@ date {
|
|
155
185
|
|
156
186
|
.largeli {
|
157
187
|
font-weight: bolder;
|
158
|
-
color:
|
188
|
+
color: $color-black;
|
159
189
|
font-size: 1.6rem;
|
160
190
|
padding: 2.25rem 1rem 0.5rem 0;
|
161
191
|
}
|
@@ -174,4 +204,18 @@ date {
|
|
174
204
|
|
175
205
|
.footer a {
|
176
206
|
color: #808080;
|
207
|
+
}
|
208
|
+
|
209
|
+
a:hover {
|
210
|
+
text-decoration: underline;
|
211
|
+
color:$color-hove;
|
212
|
+
}
|
213
|
+
|
214
|
+
.curNav {
|
215
|
+
color: $color-blue;
|
216
|
+
font-size: 1.2em;
|
217
|
+
}
|
218
|
+
|
219
|
+
.nav{
|
220
|
+
color: $color-black;
|
177
221
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-zeta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|