gravid 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +1 -1
- data/_layouts/journal.html +23 -5
- data/_sass/gravid/_layout.scss +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b9d44e129eec07539f7cc158ee59cab712e11a7
|
4
|
+
data.tar.gz: cf3bb73055fa6f914d76fd72c9a10fa2b721e408
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48bee556f26243bf5c15bca052f4aa88abe71e0b3742a449f134a91044b16155170ba2f45fc64b6d74420a96a0f4b104f8466bb79e4f3081f5e06f402fa8592e
|
7
|
+
data.tar.gz: 302ab34e502835fb39768269253b72a69a8c9a30314030a8d5d1c37d2b74b3788fc8808ba938acfacfff7ce01a44c6dcd58a8147f21e4c30a828f891ebc3fdd9
|
data/_config.yml
CHANGED
data/_layouts/journal.html
CHANGED
@@ -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
|
12
|
-
|
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="
|
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: '//', '/' }}">←
|
41
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← {{ 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: '//', '/' }}">
|
46
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ next_text }} →</a>
|
29
47
|
</li>
|
30
48
|
{% endif %}
|
31
49
|
</ul>
|
data/_sass/gravid/_layout.scss
CHANGED
@@ -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
|
}
|