gravid 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2e7bba8a98782921cfc65d4a51ed2c04f043e7000ac6ed2cd38c69eddcbd0df
4
- data.tar.gz: 9f1250e8d3472b14367d2a6e41b1e5e72fa03bf2957b3ae65d2fb723518363cf
3
+ metadata.gz: ffae2f93d311cc5d6338692eb6971ee757de6d380ba7e703bca975073fb24a96
4
+ data.tar.gz: 7109c108227cc8205384ab289e95281f8ebf6163531e713236facd8261c74bdf
5
5
  SHA512:
6
- metadata.gz: c33adc88de55e4a8b419dee8d1fb156a1ba138a7c89db5a3db943817dc907feca657d877688607dadd1c9a76b6e0575ef559ea2021c56434c2134ebe26bad255
7
- data.tar.gz: d2dbd280e3b2a871c14a2a53cd859069bd948ccc74b0c824ac43f43e0535152d93b45585e978575d81e2e9f4658d2f9644008aba8233e21a583325a219bad0c7
6
+ metadata.gz: 4bf32741c4a34573b4a53c788876711b205a07a2afbd07334be4ffd7635ac5c0d5bdaf673909ce29030e351e2e5ba41efcfd918e2c321b0b6a82b8a3fa505a3d
7
+ data.tar.gz: a180b97367786ef95f68b62a045c5cedddf5649c7f353c3c012d43d1f7ebaa35683d8daf36e88dc5b559a5a456e71f44c41f2c54100ffab564120f74078953c9
@@ -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>
@@ -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>
@@ -89,15 +89,26 @@
89
89
  /**
90
90
  * Pagination
91
91
  */
92
- .journals .pagination {
92
+ .pagination {
93
93
  margin: 0;
94
- margin-bottom: 36px;
95
- list-style: none;
94
+ min-height: 2em;
96
95
  display: flex;
97
96
  }
98
97
 
99
- .journals .previous {
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;
108
+ }
109
+
110
+ .journal {
111
+ margin-bottom: 3em;
101
112
  }
102
113
 
103
114
  .journal .journal-link {
@@ -108,8 +119,8 @@
108
119
  font-weight: 300;
109
120
  }
110
121
 
111
- .journal {
112
- margin-bottom: 88px;
122
+ .journal, .journals {
123
+ margin-bottom: 4em;
113
124
  }
114
125
 
115
126
  /**
@@ -177,3 +188,22 @@
177
188
  font-size: 14px;
178
189
  margin-bottom: 0 !important;
179
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
+ }
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: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zddhub
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-24 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll