jekyll-zeta 0.3.11 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +8 -3
- data/_includes/archive_list.html +2 -1
- data/_includes/navbar.html +14 -1
- data/_includes/post_list.html +2 -1
- data/_layouts/post.html +1 -1
- data/_sass/jekyll-zeta.scss +64 -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: 41afdead7fc69905eff99cca53c8f6054e0ddd609632bcf9c9fd7dd8edf818e0
|
4
|
+
data.tar.gz: faa4c942552dfcaa37e796a07f23dab57e8f65bd924fc090e38f66ae2b0ba087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5a9675d39905d4f5842c9becf9fea8f05b043c2a54d7011340876abcb8973bce5a1cd8512aa5c3c1bf4372462f031066a376c0a811077fe03dca3af84141eeb
|
7
|
+
data.tar.gz: def1d8e69fd9a5bf5e0991220e9bb19e1eddd782966702cae155046e587b1fb9f41524cffdb9818d258f378de8166be8a964ebbdd35f8dea0c2432c544f27e0c
|
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,7 +27,7 @@ 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
|
30
|
+
archive_title_date_format: "%m/%d"
|
31
31
|
tags_layout_style: 'auto' # flat auto list
|
32
32
|
combine_css_html: false
|
33
33
|
show_more_text: 'show more ...'
|
@@ -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,12 +4,25 @@
|
|
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
|
25
|
+
{%- if iscurrent == true -%}
|
13
26
|
<text class="curNav">{{ item.title }}</text>
|
14
27
|
{%- else -%}
|
15
28
|
<a href="{{ itemurl }}">{{ item.title }}</a>
|
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/_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,6 +126,14 @@ a {
|
|
117
126
|
margin-right: 1rem;
|
118
127
|
font-size: 1.125rem;
|
119
128
|
}
|
129
|
+
.navli a{
|
130
|
+
color: $color-black;
|
131
|
+
}
|
132
|
+
.curNav {
|
133
|
+
color: $color-blue;
|
134
|
+
font-size: 1.2em;
|
135
|
+
|
136
|
+
}
|
120
137
|
|
121
138
|
.postlistul {
|
122
139
|
padding: 0
|
@@ -125,20 +142,41 @@ a {
|
|
125
142
|
.postlistli {
|
126
143
|
list-style-type: none;
|
127
144
|
display: flex;
|
128
|
-
justify-content: space-between;
|
129
|
-
align-items:
|
145
|
+
// justify-content: space-between;
|
146
|
+
align-items: first baseline;
|
147
|
+
padding: 10px 0;
|
130
148
|
|
131
149
|
}
|
132
150
|
|
133
|
-
.
|
134
|
-
color: #
|
135
|
-
|
151
|
+
.postlistli a,.pagebar a {
|
152
|
+
color: #000;
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
span.next{
|
157
|
+
color: #c3c3c3;
|
136
158
|
}
|
159
|
+
|
160
|
+
|
137
161
|
|
138
|
-
|
139
|
-
|
162
|
+
|
163
|
+
date {
|
164
|
+
color: $color-lightGray;
|
165
|
+
font-size: 0.9em;
|
166
|
+
margin-right: 1em;
|
167
|
+
}
|
168
|
+
|
169
|
+
time {
|
170
|
+
color: $color-lightGray;
|
171
|
+
font-weight: 500;
|
172
|
+
}
|
173
|
+
.tag {
|
174
|
+
color: $color-lightGray;
|
175
|
+
font-weight: 500;
|
140
176
|
}
|
141
177
|
|
178
|
+
|
179
|
+
|
142
180
|
.pagebar {
|
143
181
|
margin-top: 2rem;
|
144
182
|
display: flex;
|
@@ -147,7 +185,7 @@ date {
|
|
147
185
|
}
|
148
186
|
|
149
187
|
.page_number {
|
150
|
-
color:
|
188
|
+
color: $color-black;
|
151
189
|
padding-left: 10px;
|
152
190
|
padding-right: 10px;
|
153
191
|
text-align: center;
|
@@ -155,7 +193,7 @@ date {
|
|
155
193
|
|
156
194
|
.largeli {
|
157
195
|
font-weight: bolder;
|
158
|
-
color:
|
196
|
+
color: $color-black;
|
159
197
|
font-size: 1.6rem;
|
160
198
|
padding: 2.25rem 1rem 0.5rem 0;
|
161
199
|
}
|
@@ -174,4 +212,9 @@ date {
|
|
174
212
|
|
175
213
|
.footer a {
|
176
214
|
color: #808080;
|
177
|
-
}
|
215
|
+
}
|
216
|
+
|
217
|
+
a:hover {
|
218
|
+
text-decoration: underline;
|
219
|
+
color:$color-hove;
|
220
|
+
}
|
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.0
|
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
|