minimalist-theme 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/_layouts/index.html +37 -2
- data/_sass/main.scss +39 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 163242ab408cd87c7d1afc71bac33d536306a97033c89bd4cc06bf19fd03e67c
|
4
|
+
data.tar.gz: 7c13dae91e77b3a116aed551111d6ced9dfb58588fedbec9802dfae43036ef78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5568dc16580b2b8d1a61c116f8b0b84da5b649a610518a14804a7c8bf9c2f9a94c9d2e0786d5607f3bbbc7f2f04600a94b9133abfd13eab515eba11e6e68f315
|
7
|
+
data.tar.gz: e8a5507be18137fe74f23f5efd64fd29d0922573ebfed954ada18eede06221a003c0032e366aa9d87a1ba2312a946fa2e1f68794d36901c22122bf30405b53a1
|
data/README.md
CHANGED
@@ -48,6 +48,10 @@ Also, add this part in your front matter:
|
|
48
48
|
comments: true
|
49
49
|
````
|
50
50
|
|
51
|
+
### Pagination
|
52
|
+
|
53
|
+
Pagination could be activate, see configuration in the following snippet
|
54
|
+
|
51
55
|
---
|
52
56
|
|
53
57
|
For each files, the layout name will be the same as the file name.
|
@@ -105,8 +109,12 @@ plugins:
|
|
105
109
|
- jekyll-feed
|
106
110
|
- jekyll-sitemap
|
107
111
|
- jekyll-seo-tag
|
112
|
+
- jekyll-paginate
|
108
113
|
|
109
114
|
permalink: /:title/
|
115
|
+
|
116
|
+
paginate: 4
|
117
|
+
paginate_path: "/page:num/"
|
110
118
|
```
|
111
119
|
|
112
120
|
## Contributing
|
data/_layouts/index.html
CHANGED
@@ -4,7 +4,7 @@ layout: default
|
|
4
4
|
---
|
5
5
|
<section class="mw7 center">
|
6
6
|
<h2 class="fw1 ph3 ph0-l playfair">{{ site.index.title }}</h2>
|
7
|
-
{% for post in
|
7
|
+
{% for post in paginator.posts %}
|
8
8
|
<article class="bt bb b--black-10">
|
9
9
|
<a class="db pv4 ph3 ph0-l no-underline black dim" href="{{ post.url }}">
|
10
10
|
<div class="flex flex-column flex-row-ns chivo">
|
@@ -16,9 +16,44 @@ layout: default
|
|
16
16
|
{% assign num_words = post.content | strip_html | number_of_words | append: " words"%}
|
17
17
|
<p class="f6 lh-copy mv0 gray">{{ post.author }}</p>
|
18
18
|
<time class="f6 db gray">{{ post.date | date: "%b %d, %y" }} - {{ num_words }}</time>
|
19
|
+
</div>
|
19
20
|
</div>
|
20
|
-
</div>
|
21
21
|
</a>
|
22
22
|
</article>
|
23
23
|
{% endfor %}
|
24
|
+
|
25
|
+
<!-- pagination -->
|
26
|
+
{% if paginator.total_pages > 1 %}
|
27
|
+
<div class="pagination chivo mv3">
|
28
|
+
{% if paginator.previous_page %}
|
29
|
+
<a href="{{ paginator.previous_page_path }}" class="v-mid">
|
30
|
+
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M21 24l-18-12 18-12v24zm-16.197-12l15.197 10.132v-20.263l-15.197 10.131"/></svg>
|
31
|
+
</a>
|
32
|
+
{% else %}
|
33
|
+
<span class="v-mid">
|
34
|
+
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M21 24l-18-12 18-12v24zm-16.197-12l15.197 10.132v-20.263l-15.197 10.131"/></svg>
|
35
|
+
</span>
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
{% for page in (1..paginator.total_pages) %}
|
39
|
+
{% if page == paginator.page %}
|
40
|
+
<span>{{ page }}</span>
|
41
|
+
{% elsif page == 1 %}
|
42
|
+
<a href="/">{{ page }}</a>
|
43
|
+
{% else %}
|
44
|
+
<a href="{{ site.paginate_path | replace: ':num', page }}">{{ page }}</a>
|
45
|
+
{% endif %}
|
46
|
+
{% endfor %}
|
47
|
+
|
48
|
+
{% if paginator.next_page %}
|
49
|
+
<a href="{{ paginator.next_page_path }}" class="v-mid">
|
50
|
+
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M3 24l18-12-18-12v24zm16.197-12l-15.197 10.132v-20.263l15.197 10.131"/></svg>
|
51
|
+
</a>
|
52
|
+
{% else %}
|
53
|
+
<span class="v-mid">
|
54
|
+
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M3 24l18-12-18-12v24zm16.197-12l-15.197 10.132v-20.263l15.197 10.131"/></svg>
|
55
|
+
</span>
|
56
|
+
{% endif %}
|
57
|
+
</div>
|
58
|
+
{% endif %}
|
24
59
|
</section>
|
data/_sass/main.scss
CHANGED
@@ -26,10 +26,6 @@ html{
|
|
26
26
|
letter-spacing: 1px;
|
27
27
|
}
|
28
28
|
|
29
|
-
/* footer {
|
30
|
-
box-shadow: 0 0 2px #e3e3e3;
|
31
|
-
} */
|
32
|
-
|
33
29
|
table {
|
34
30
|
border-collapse: collapse;
|
35
31
|
border-spacing: 0;
|
@@ -44,6 +40,44 @@ thead tr {
|
|
44
40
|
background-color: #eee;
|
45
41
|
}
|
46
42
|
|
47
|
-
tbody tr{
|
43
|
+
tbody tr {
|
48
44
|
text-align: center;
|
49
45
|
}
|
46
|
+
|
47
|
+
a {
|
48
|
+
font-size: 1.25rem;
|
49
|
+
opacity: 1;
|
50
|
+
transition: opacity .15s ease-in;
|
51
|
+
color: #000;
|
52
|
+
text-decoration: none;
|
53
|
+
font-weight: 600;
|
54
|
+
display: block;
|
55
|
+
}
|
56
|
+
|
57
|
+
a:hover,
|
58
|
+
a:focus {
|
59
|
+
opacity: .5;
|
60
|
+
transition: opacity .15s ease-in;
|
61
|
+
}
|
62
|
+
|
63
|
+
a:active {
|
64
|
+
opacity: .8;
|
65
|
+
transition: opacity .15s ease-out;
|
66
|
+
}
|
67
|
+
|
68
|
+
.pagination {
|
69
|
+
text-align: center;
|
70
|
+
|
71
|
+
a, span {
|
72
|
+
padding: 7px 18px;
|
73
|
+
margin-left: -2px;
|
74
|
+
margin-right: -2px;
|
75
|
+
display: inline-block;
|
76
|
+
}
|
77
|
+
|
78
|
+
a {
|
79
|
+
&:hover {
|
80
|
+
color: #333;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimalist-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YannickDurden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|