gravid 0.1.13 → 1.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a9f75d686281eb1eb1e3e2ed76d600a4d083a247
4
- data.tar.gz: 010433351650be1aec4f07bb51f7149ced86b6eb
2
+ SHA256:
3
+ metadata.gz: 98f19b109c3418a0f11a801b2c1f5951f20dce54052c432c72fd2a66218b82c6
4
+ data.tar.gz: e04674e7675aae27c169a501c417811c823c733d82af3b85d7c6aa66609129d7
5
5
  SHA512:
6
- metadata.gz: 2ab22b812b1778c3854b194e78fd294178f4c9b201829d57887f20a11be4f83ba99f2028ed902dc66d04852c48ea7fd78461561f8f6508d83003b1a0072e277f
7
- data.tar.gz: 5362e1df55795e2ba76058502ea58a6ce92ac284ba0cf041f80f8a1f396f41dd4f78b3fcbe2eef3cc3aa00d775538f1ab86d033b334321f3168aa85dc216c36a
6
+ metadata.gz: f5c1b2a8543b6d4bb790d0533302c1a4d74dadde8b09eeaf1e5849575bb5f60899c832284759eaea25cedb701eb9dd994529053fef397b702877ceea9ab530fc
7
+ data.tar.gz: 2b36a5c2ec7c69ca2b8f75cd8ec355f90719fd12309988099c55416ffb5ade7016776d5f38f1e162cada476b7613e9ca8088f1d2d1f3481f940f7aebf5ad802e
@@ -0,0 +1,5 @@
1
+ <footer class="footer typo-small">
2
+ <span class="copyright">&copy;{{site.time | date: "%Y"}} {{ site.author }}</span>
3
+ <span class="bar"></span>
4
+ <span>All rights reserved</span>
5
+ </footer>
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>
@@ -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>
@@ -28,25 +28,21 @@ layout: default
28
28
  </div>
29
29
 
30
30
  {% if paginator.total_pages > 1 %}
31
- <ul class="pagination">
32
- {% assign previous_text = 'Newer Journals' %}
33
- {% assign next_text = 'Older Journals' %}
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 previous_text = '上一页' %}
36
- {% assign next_text = '下一页' %}
35
+ {% assign newer_page = '上一页' %}
36
+ {% assign older_text = '下一页' %}
37
37
  {% endif %}
38
38
 
39
39
  {% if paginator.previous_page %}
40
- <li class="previous">
41
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; {{ previous_text }}</a>
42
- </li>
40
+ <a class="next" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; {{ newer_page }}</a>
43
41
  {% endif %}
44
42
  {% if paginator.next_page %}
45
- <li class="next">
46
- <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ next_text }} &rarr;</a>
47
- </li>
43
+ <a class="previous" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ older_text }} &rarr;</a>
48
44
  {% endif %}
49
- </ul>
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 }}">&larr; {{ page.next.title }}</a>
17
+ {% endif %}
18
+
19
+ {% if page.previous.url %}
20
+ <a class="previous" href="{{ page.previous.url }}">{{ page.previous.title }} &rarr;</a>
21
+ {% endif %}
22
+ </div>
23
+
14
24
  {% if site.enable_reward %} {% include reward.html %} {% endif %}
15
25
  </article>
@@ -7,6 +7,7 @@ html, body {
7
7
  body {
8
8
  padding-top: 60px;
9
9
  font-size: 1.1em;
10
+ font-family: -apple-system, BlinkMacSystemFont, SFProDisplay-Regular;
10
11
  }
11
12
 
12
13
  hr {
@@ -36,4 +37,4 @@ pre {
36
37
 
37
38
  blockquote {
38
39
  color: #666;
39
- }
40
+ }
@@ -4,7 +4,7 @@
4
4
 
5
5
  .site-header {
6
6
  position: fixed;
7
- height: 50px;
7
+ height: 80px;
8
8
  width: 100%;
9
9
  top: 0;
10
10
  left: 0;
@@ -12,7 +12,7 @@
12
12
  border-bottom: 1px solid #eee;
13
13
  background: #fff;
14
14
  z-index: 1;
15
- line-height: 50px;
15
+ line-height: 80px;
16
16
  font-size: 20px;
17
17
  box-sizing: border-box;
18
18
 
@@ -66,8 +66,9 @@
66
66
  }
67
67
 
68
68
  .avatar {
69
- height: 48px;
70
- border-radius: 48px;
69
+ height: 64px;
70
+ border-radius: 64px;
71
+ vertical-align: middle;
71
72
  }
72
73
 
73
74
  .container {
@@ -89,27 +90,38 @@
89
90
  /**
90
91
  * Pagination
91
92
  */
92
- .journals .pagination {
93
+ .pagination {
93
94
  margin: 0;
94
- margin-bottom: 36px;
95
- list-style: none;
95
+ min-height: 2em;
96
96
  display: flex;
97
97
  }
98
98
 
99
- .journals .previous {
99
+ .pagination .previous {
100
100
  flex: 1;
101
+ text-align: right;
102
+ border-bottom: none;
103
+ }
104
+
105
+ .pagination .next {
106
+ flex: 1;
107
+ text-align: left;
108
+ border-bottom: none;
101
109
  }
102
110
 
103
- .journals .journal-link {
111
+ .journal {
112
+ margin-bottom: 3em;
113
+ }
114
+
115
+ .journal .journal-link {
104
116
  font-weight: 300;
105
117
  }
106
118
 
107
- .journals .post-link {
119
+ .blog .post-link {
108
120
  font-weight: 300;
109
121
  }
110
122
 
111
- .journal {
112
- margin-bottom: 88px;
123
+ .journal, .journals {
124
+ margin-bottom: 4em;
113
125
  }
114
126
 
115
127
  /**
@@ -177,3 +189,22 @@
177
189
  font-size: 14px;
178
190
  margin-bottom: 0 !important;
179
191
  }
192
+
193
+ .footer {
194
+ text-align: center;
195
+ margin: 6em 0 4em 0;
196
+ }
197
+
198
+ .copyright {
199
+ text-transform: uppercase;
200
+ }
201
+
202
+ .bar {
203
+ width: 1px;
204
+ height: 14px;
205
+ background: #e0e0e0;
206
+ display: inline-block;
207
+ position: relative;
208
+ top: 2px;
209
+ padding: 0;
210
+ }
@@ -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: 0.1.13
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - zddhub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-07 00:00:00.000000000 Z
11
+ date: 2021-02-21 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: '3.4'
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: '3.4'
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: '1.12'
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: '1.12'
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: '10.0'
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: '10.0'
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
- rubyforge_project:
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.