gravid 0.1.12 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/_includes/footer.html +5 -0
- data/_includes/head.html +1 -0
- data/_includes/header.html +4 -4
- data/_layouts/journal.html +8 -12
- data/_layouts/post.html +10 -0
- data/_sass/gravid/_base.scss +2 -1
- data/_sass/gravid/_layout.scss +43 -5
- data/assets/icons/manifest.json +2 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 79715bb154e3b9b6e874b1322765c1f67a1169bbf5d8e9f0e5305ac04fea8e8d
|
4
|
+
data.tar.gz: b659093b53d766b01731d4c53cec31aba3a271237f60ef488d3a014d6438a03d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c49e0b66f49c25051ec17935e790eba79327d457f0562af58f2331e4a88bc1c8e9d8347f5ee9eaffe5cfc258f6bcc88853df9ecca0b60b6e680797e0e71fa48
|
7
|
+
data.tar.gz: 6557e9e82a7df45984d7ee1c4f1d5e5f949629e290c46123b33b26af3c02a1bfacc08042f58063bf293be7d7db1545480025c162925650dd1a2bc3abadd50800
|
data/_includes/footer.html
CHANGED
data/_includes/head.html
CHANGED
@@ -40,4 +40,5 @@
|
|
40
40
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
41
41
|
|
42
42
|
<script async src="//www.google-analytics.com/analytics.js"></script>
|
43
|
+
<script data-ad-client="ca-pub-1326478359331739" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
43
44
|
</head>
|
data/_includes/header.html
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
</a>
|
6
6
|
<nav class="site-nav">
|
7
7
|
{% if site.language == 'zh-CN' %}
|
8
|
-
<a class="sidebar-nav-item" href="/journal">周记</a>
|
9
|
-
<a class="sidebar-nav-item" href="/archive">归档</a>
|
10
8
|
<a class="sidebar-nav-item" href="/about">关于</a>
|
9
|
+
<a class="sidebar-nav-item" href="/archive">归档</a>
|
10
|
+
<a class="sidebar-nav-item" href="/journal">周记</a>
|
11
11
|
{% else %}
|
12
|
-
<a class="sidebar-nav-item" href="/journal">Journal</a>
|
13
|
-
<a class="sidebar-nav-item" href="/archive">Archive</a>
|
14
12
|
<a class="sidebar-nav-item" href="/about">About</a>
|
13
|
+
<a class="sidebar-nav-item" href="/archive">Archive</a>
|
14
|
+
<a class="sidebar-nav-item" href="/journal">Journal</a>
|
15
15
|
{% endif %}
|
16
16
|
</nav>
|
17
17
|
</header>
|
data/_layouts/journal.html
CHANGED
@@ -28,25 +28,21 @@ layout: default
|
|
28
28
|
</div>
|
29
29
|
|
30
30
|
{% if paginator.total_pages > 1 %}
|
31
|
-
<
|
32
|
-
{% assign
|
33
|
-
{% assign
|
31
|
+
<div class="pagination">
|
32
|
+
{% assign newer_page = 'Newer Journals' %}
|
33
|
+
{% assign older_text = 'Older Journals' %}
|
34
34
|
{% if site.language == 'zh-CN' %}
|
35
|
-
{% assign
|
36
|
-
{% assign
|
35
|
+
{% assign newer_page = '上一页' %}
|
36
|
+
{% assign older_text = '下一页' %}
|
37
37
|
{% endif %}
|
38
38
|
|
39
39
|
{% if paginator.previous_page %}
|
40
|
-
|
41
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← {{ previous_text }}</a>
|
42
|
-
</li>
|
40
|
+
<a class="next" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← {{ newer_page }}</a>
|
43
41
|
{% endif %}
|
44
42
|
{% if paginator.next_page %}
|
45
|
-
|
46
|
-
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ next_text }} →</a>
|
47
|
-
</li>
|
43
|
+
<a class="previous" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ older_text }} →</a>
|
48
44
|
{% endif %}
|
49
|
-
</
|
45
|
+
</div>
|
50
46
|
{% endif %}
|
51
47
|
</section>
|
52
48
|
|
data/_layouts/post.html
CHANGED
@@ -11,5 +11,15 @@ layout: default
|
|
11
11
|
</h1>
|
12
12
|
{{ content }}
|
13
13
|
|
14
|
+
<div class="pagination">
|
15
|
+
{% if page.next.url %}
|
16
|
+
<a class="next" href="{{ page.next.url }}">← {{ page.next.title }}</a>
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
{% if page.previous.url %}
|
20
|
+
<a class="previous" href="{{ page.previous.url }}">{{ page.previous.title }} →</a>
|
21
|
+
{% endif %}
|
22
|
+
</div>
|
23
|
+
|
14
24
|
{% if site.enable_reward %} {% include reward.html %} {% endif %}
|
15
25
|
</article>
|
data/_sass/gravid/_base.scss
CHANGED
data/_sass/gravid/_layout.scss
CHANGED
@@ -89,19 +89,38 @@
|
|
89
89
|
/**
|
90
90
|
* Pagination
|
91
91
|
*/
|
92
|
-
.
|
92
|
+
.pagination {
|
93
93
|
margin: 0;
|
94
|
-
|
95
|
-
list-style: none;
|
94
|
+
min-height: 2em;
|
96
95
|
display: flex;
|
97
96
|
}
|
98
97
|
|
99
|
-
.
|
98
|
+
.pagination .previous {
|
100
99
|
flex: 1;
|
100
|
+
text-align: right;
|
101
|
+
border-bottom: none;
|
102
|
+
}
|
103
|
+
|
104
|
+
.pagination .next {
|
105
|
+
flex: 1;
|
106
|
+
text-align: left;
|
107
|
+
border-bottom: none;
|
101
108
|
}
|
102
109
|
|
103
110
|
.journal {
|
104
|
-
margin-bottom:
|
111
|
+
margin-bottom: 3em;
|
112
|
+
}
|
113
|
+
|
114
|
+
.journal .journal-link {
|
115
|
+
font-weight: 300;
|
116
|
+
}
|
117
|
+
|
118
|
+
.blog .post-link {
|
119
|
+
font-weight: 300;
|
120
|
+
}
|
121
|
+
|
122
|
+
.journal, .journals {
|
123
|
+
margin-bottom: 4em;
|
105
124
|
}
|
106
125
|
|
107
126
|
/**
|
@@ -169,3 +188,22 @@
|
|
169
188
|
font-size: 14px;
|
170
189
|
margin-bottom: 0 !important;
|
171
190
|
}
|
191
|
+
|
192
|
+
.footer {
|
193
|
+
text-align: center;
|
194
|
+
margin: 6em 0 4em 0;
|
195
|
+
}
|
196
|
+
|
197
|
+
.copyright {
|
198
|
+
text-transform: uppercase;
|
199
|
+
}
|
200
|
+
|
201
|
+
.bar {
|
202
|
+
width: 1px;
|
203
|
+
height: 14px;
|
204
|
+
background: #e0e0e0;
|
205
|
+
display: inline-block;
|
206
|
+
position: relative;
|
207
|
+
top: 2px;
|
208
|
+
padding: 0;
|
209
|
+
}
|
data/assets/icons/manifest.json
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
"name": "",
|
3
3
|
"icons": [
|
4
4
|
{
|
5
|
-
"src": "/android-chrome-192x192.png",
|
5
|
+
"src": "/assets/icons/android-chrome-192x192.png",
|
6
6
|
"sizes": "192x192",
|
7
7
|
"type": "image/png"
|
8
8
|
},
|
9
9
|
{
|
10
|
-
"src": "/android-chrome-512x512.png",
|
10
|
+
"src": "/assets/icons/android-chrome-512x512.png",
|
11
11
|
"sizes": "512x512",
|
12
12
|
"type": "image/png"
|
13
13
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gravid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zddhub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.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: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.1.4
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.1.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 13.0.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 13.0.1
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- zddhub@gmail.com
|
@@ -132,8 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
|
136
|
-
rubygems_version: 2.4.5
|
135
|
+
rubygems_version: 3.1.4
|
137
136
|
signing_key:
|
138
137
|
specification_version: 4
|
139
138
|
summary: A simple and beautiful jekyll theme.
|