jekyll-theme-noesya 1.0.21 → 1.0.22
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 +4 -4
- data/_includes/navigation-between-pages.html +37 -8
- data/_layouts/default.html +1 -1
- data/_sass/main.sass +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7e56e7b5e6006e05cb21341571ca47665186f29bb15f638a95ce55d879b7f43
|
|
4
|
+
data.tar.gz: 263aca04c2d38797ad0a12081a37a64a685e10c81ab2e507af097b01c22ae9bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 186aed2f2617b7083401745466fdbfaf192ca36c414898a113e9ab0fc0597f02cd3f1292b870720b280200fd2e3fe8eecef323adf954b579c292d381c1297645
|
|
7
|
+
data.tar.gz: a176e88b1054bfc67cae6e9cca5baf97e211ac8540d52c9111258d1e96f1f6f78ace0f53e47df124129d0cc6fbb2078bab185cd1c923bbfe21da70aefec6c255
|
|
@@ -1,16 +1,45 @@
|
|
|
1
|
+
{% assign previous = false %}
|
|
2
|
+
{% assign next = false %}
|
|
1
3
|
{% if page.nav %}
|
|
2
|
-
|
|
4
|
+
{% assign previous = page.nav.previous %}
|
|
5
|
+
{% assign next = page.nav.next %}
|
|
6
|
+
{% elsif include.auto %}
|
|
7
|
+
{% assign collection = site[page.collection] %}
|
|
8
|
+
|
|
9
|
+
{% for item in collection %}
|
|
10
|
+
{% if item.title == page.title %}
|
|
11
|
+
{% unless forloop.first %}
|
|
12
|
+
{% assign previous = iterator %}
|
|
13
|
+
{% endunless %}
|
|
14
|
+
{% unless forloop.last %}
|
|
15
|
+
{% assign next = collection[forloop.index] %}
|
|
16
|
+
{% endunless %}
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% assign iterator = item %}
|
|
19
|
+
{% endfor %}
|
|
20
|
+
|
|
21
|
+
{% unless previous %}
|
|
22
|
+
{% assign previous = collection | last %}
|
|
23
|
+
{% endunless %}
|
|
24
|
+
|
|
25
|
+
{% unless next %}
|
|
26
|
+
{% assign next = collection | first %}
|
|
27
|
+
{% endunless %}
|
|
28
|
+
{% endif %}
|
|
29
|
+
|
|
30
|
+
{% if previous and next %}
|
|
31
|
+
<nav>
|
|
3
32
|
<ul>
|
|
4
33
|
<li data-link-delay="3">
|
|
5
|
-
<a href="{{
|
|
6
|
-
<span>{{
|
|
7
|
-
{{-
|
|
34
|
+
<a href="{{previous.url}}">
|
|
35
|
+
<span>{{previous.text | default: 'Précédent'}}</span><br>
|
|
36
|
+
{{- previous.title -}}
|
|
8
37
|
</a>
|
|
9
38
|
</li>
|
|
10
|
-
<li
|
|
11
|
-
<a href="{{
|
|
12
|
-
<span>{{
|
|
13
|
-
{{-
|
|
39
|
+
<li data-link-delay="3">
|
|
40
|
+
<a href="{{next.url}}">
|
|
41
|
+
<span>{{next.text | default: 'Suivant'}}</span><br>
|
|
42
|
+
{{- next.title -}}
|
|
14
43
|
</a>
|
|
15
44
|
</li>
|
|
16
45
|
</ul>
|
data/_layouts/default.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
{% include header.html %}
|
|
19
19
|
<main aria-label="Content" class="{{ page.class | default: layout.class }}">
|
|
20
20
|
{{ content }}
|
|
21
|
-
{% include navigation-between-pages.html %}
|
|
21
|
+
{% include navigation-between-pages.html auto=true %}
|
|
22
22
|
</main>
|
|
23
23
|
{% include footer.html %}
|
|
24
24
|
|
data/_sass/main.sass
CHANGED