jekyll-theme-noesya 1.0.21 → 1.0.25

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: 5a6e29207f3bc4c283ccd58315934efc9836da9f5ea2e2f975f8b3cf45191e53
4
- data.tar.gz: e87a4e0d20feba7d2878cf8756a2a5f57256aa7c1c9d728e519629e035b3ab1f
3
+ metadata.gz: 6be4ecc93cf7a7c226e11f62023c8ecf83046b9f2de20ea4446c0e8a6081fc4d
4
+ data.tar.gz: 255360a922005f848e7dd9de3954552b04871caffd2f97d13ceca964dac0e93b
5
5
  SHA512:
6
- metadata.gz: cb996758213248c7d8d3ad1ebca0568edecbe7d0dde84fe74bc650694b0b43acfd340dc3f90274224135da6743f29262894d00233e53447cb3b1c0b05cd4c489
7
- data.tar.gz: c1e7e3ca54c6f75514d275319a04fbc343882521d21cd8d221a49b162bce6be377b4f3b24d85596206f0f39a9f34b516fe034545e6f2e7c9cf206f08e2aabfbb
6
+ metadata.gz: 1aa14801b99b28e1f4c15fbaaf06230b6a7368b7d657b7b4b21dbfa3007611b05978884faa679fe155ed9ec053dd877557b1af225c4d4467607bdef91a754532
7
+ data.tar.gz: 82db2a2090dd7a8b305123b5362261e52f8c89f7a287c9792e8528c9f601f461832a70e801c89e073eb0cc4da3479852bc290c57ace5aba11042b121356840f7
@@ -1,16 +1,45 @@
1
+ {% assign previous = false %}
2
+ {% assign next = false %}
1
3
  {% if page.nav %}
2
- <nav>
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="{{page.nav.previous.url}}">
6
- <span>{{page.nav.previous.title}}</span><br>
7
- {{- page.nav.previous.text -}}
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 data-link-delay="3">
11
- <a href="{{page.nav.next.url}}">
12
- <span>{{page.nav.next.title}}</span><br>
13
- {{- page.nav.next.text -}}
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>
@@ -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=page.auto_navigation %}
22
22
  </main>
23
23
  {% include footer.html %}
24
24
 
@@ -1,6 +1,6 @@
1
1
  body > header
2
2
  @include container
3
- align-items: center
3
+ align-items: baseline
4
4
  display: flex
5
5
  left: 0
6
6
  padding-top: $grid-sm-margin * 2
@@ -10,33 +10,27 @@ body > header
10
10
  z-index: 2
11
11
  @include media-breakpoint-up(md)
12
12
  padding-top: $grid-gutter * 2
13
- &.menu-burger-only-mobile
14
- margin-top: -3px
15
- nav
16
- margin-top: -3px
17
13
  a
18
14
  text-decoration: none
19
- // Logo
20
- img
21
- display: block
22
- margin-left: -2px
15
+ // Logo
23
16
  > a
17
+ align-self: flex-start
24
18
  display: inline-block
25
19
  flex-shrink: 0
26
20
  position: relative
27
21
  transition: filter .3s ease
28
22
  vertical-align: middle
29
23
  z-index: 1
24
+ img
25
+ display: block
26
+ margin-left: -2px
30
27
  & + em
31
- display: inline-block
32
28
  flex-shrink: 0
33
29
  font-size: px2rem(25)
34
30
  margin-left: $grid-gutter
35
- margin-top: -4px
36
- vertical-align: middle
37
31
  @media (max-width: 350px)
38
32
  font-size: px2rem(20)
39
- margin-left: 15px
33
+ margin-left: $grid-gutter / 2
40
34
 
41
35
  @include media-breakpoint-up(lg)
42
36
  width: calc(8.3333% + 9px)
@@ -104,6 +104,7 @@
104
104
  li
105
105
  font-family: $font-family-serif
106
106
  font-size: px2rem(25)
107
+ line-height: 1
107
108
  margin-bottom: 0
108
109
  &:not(:first-child)
109
110
  margin-left: $grid-gutter
data/_sass/main.sass CHANGED
@@ -17,6 +17,7 @@
17
17
 
18
18
  @import "components/header"
19
19
  @import "components/menu"
20
+ @import "components/nav-between.sass"
20
21
 
21
22
  @import "layouts/legal"
22
23
  @import "layouts/page"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-noesya
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-11-05 00:00:00.000000000 Z
13
+ date: 2021-11-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jekyll
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.1.4
160
+ rubygems_version: 3.1.6
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Noesya theme for Jekyll.