gravid 0.1.11 → 0.1.12

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
2
  SHA1:
3
- metadata.gz: 48658b5ab36275682886901f0503ca7e5b0b6c6a
4
- data.tar.gz: 20810b208f8daab0643683e520a06be306015271
3
+ metadata.gz: 6b9d44e129eec07539f7cc158ee59cab712e11a7
4
+ data.tar.gz: cf3bb73055fa6f914d76fd72c9a10fa2b721e408
5
5
  SHA512:
6
- metadata.gz: 9d53ff3775481193de45d7b080a98fa4f88d7c04edf8a410cd5c124203e54a51ce91134bdc5456c3f1859580b730f0ecaa879c656ee7320048933c1822888cb8
7
- data.tar.gz: c297dacf875832e96f7d238675ab19f00042d9ab7fa26c3d0939fcc0ae93e3dd142d274a82df6d134ebc2d408905b1a4ee80da8417610f8776f3bf64fc0ab887
6
+ metadata.gz: 48bee556f26243bf5c15bca052f4aa88abe71e0b3742a449f134a91044b16155170ba2f45fc64b6d74420a96a0f4b104f8466bb79e4f3081f5e06f402fa8592e
7
+ data.tar.gz: 302ab34e502835fb39768269253b72a69a8c9a30314030a8d5d1c37d2b74b3788fc8808ba938acfacfff7ce01a44c6dcd58a8147f21e4c30a828f891ebc3fdd9
@@ -32,5 +32,5 @@ exclude:
32
32
 
33
33
  plugins_dir:
34
34
  - jekyll-paginate
35
- paginate: 5
35
+ paginate: 3
36
36
  paginate_path: "/journal/page:num/"
@@ -8,24 +8,42 @@ layout: default
8
8
  {% for post in paginator.posts %}
9
9
  {% if post.journal %}
10
10
  <article class="journal">
11
- <h4><code class="highlighter-rouge">{{ post.journal }}: </code><a class="journal-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h4>
12
- {% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
11
+ <h4>
12
+ <code class="highlighter-rouge">{{ post.journal }}: </code>
13
+ <a class="journal-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
14
+ </h4>
13
15
  <p class="typo-small">{{ post.content }}</p>
14
16
  </article>
17
+ {% else %}
18
+ <article class="blog">
19
+ <h4>
20
+ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
21
+ {% assign date_format = site.gravid.date_format | default: "%m/%d/%Y" %}
22
+ <small class="post-meta">{{ post.date | date: date_format }}</small>
23
+ </h4>
24
+ <p class="typo-small">{{ post.content | split:"<!-- more -->" | first | strip_html }}</p>
25
+ </article>
15
26
  {% endif %}
16
27
  {% endfor %}
17
28
  </div>
18
29
 
19
30
  {% if paginator.total_pages > 1 %}
20
- <ul class="pager">
31
+ <ul class="pagination">
32
+ {% assign previous_text = 'Newer Journals' %}
33
+ {% assign next_text = 'Older Journals' %}
34
+ {% if site.language == 'zh-CN' %}
35
+ {% assign previous_text = '上一页' %}
36
+ {% assign next_text = '下一页' %}
37
+ {% endif %}
38
+
21
39
  {% if paginator.previous_page %}
22
40
  <li class="previous">
23
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
41
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; {{ previous_text }}</a>
24
42
  </li>
25
43
  {% endif %}
26
44
  {% if paginator.next_page %}
27
45
  <li class="next">
28
- <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
46
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ next_text }} &rarr;</a>
29
47
  </li>
30
48
  {% endif %}
31
49
  </ul>
@@ -80,6 +80,26 @@
80
80
  list-style: none;
81
81
  }
82
82
 
83
+ .blog {
84
+ border: 1px #e1e4e8 solid;
85
+ padding: 0 16px;
86
+ margin-bottom: 20px;
87
+ }
88
+
89
+ /**
90
+ * Pagination
91
+ */
92
+ .journals .pagination {
93
+ margin: 0;
94
+ margin-bottom: 36px;
95
+ list-style: none;
96
+ display: flex;
97
+ }
98
+
99
+ .journals .previous {
100
+ flex: 1;
101
+ }
102
+
83
103
  .journal {
84
104
  margin-bottom: 88px;
85
105
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gravid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - zddhub