jekyll-theme-noesya 1.0.20 → 1.0.24

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: 6338dd9388fda3c77445368afb358d43e7f1d54615f430e16dba6775e7ba20d0
4
- data.tar.gz: a4cc974520433a73cc7c0658a728ec7e843f20ec52e6b82ceda4c9027909da9e
3
+ metadata.gz: 24f7b5480fdb6a5b7369ac032b3963f3d26713366085e1b78226b96f5353b6d2
4
+ data.tar.gz: c45257bdaeb4af1d417278ca016d37c36276e44b8e7c698277bb1834fd6c5157
5
5
  SHA512:
6
- metadata.gz: 2e7e7b08fed9c9a34212b760400df810b7f3e92560c8d340524fa9e0f660a76d476db56032cf1cd668863c2709d9dc898efda526111514411eefb06e9e30c0c9
7
- data.tar.gz: 7361f490f020d8af574ca77366e0813cff7fdb237d3f7a594fc7883e56360769a5a2a067504d6f990b3c03fdb2a0032be49f1cd70212b17a401a2519de7104e1
6
+ metadata.gz: 89a2cc7f8ad61569fbe9dc2395e6b9d6ed92316337b038e43a8b49c30f1333ff30fd524680f949d2f45361df3666db7c57c2334fe255fde7bae2876f9b5acc2f
7
+ data.tar.gz: 3747284128a48156755bc01701919ff6dde6af8207cbd1f1f1d03fa3591a8cde6ad9b53e6fe25bd142358e384025ee7c382630848c35fcf640c1375e6b5bb702
@@ -1,4 +1,4 @@
1
- <header id="header"{% unless site.options.menu_burger %} class="menu_burger_only_mobile"{% endunless %}>
1
+ <header id="header"{% unless site.options.menu_burger %} class="menu-burger-only-mobile"{% endunless %}>
2
2
  <a href="/">
3
3
  <img src="https://assets.noesya.coop/images/logos/logo-noesya.svg" alt="{{ site.title }}" width="100" height="26">
4
4
  </a>
@@ -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
 
@@ -68,7 +68,7 @@
68
68
  ul:hover
69
69
  a
70
70
  color: $secondary-reverse
71
- .menu_burger_only_mobile &
71
+ .menu-burger-only-mobile &
72
72
  color: $white
73
73
  &:hover
74
74
  color: $white
@@ -10,8 +10,10 @@ 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
13
+ &.menu-burger-only-mobile
14
14
  margin-top: -3px
15
+ nav
16
+ margin-top: -3px
15
17
  a
16
18
  text-decoration: none
17
19
  // Logo
@@ -30,8 +32,12 @@ body > header
30
32
  flex-shrink: 0
31
33
  font-size: px2rem(25)
32
34
  margin-left: $grid-gutter
33
- margin-top: -2px
35
+ margin-top: -4px
34
36
  vertical-align: middle
37
+ @media (max-width: 350px)
38
+ font-size: px2rem(20)
39
+ margin-left: 15px
40
+
35
41
  @include media-breakpoint-up(lg)
36
42
  width: calc(8.3333% + 9px)
37
43
  img
@@ -32,7 +32,7 @@
32
32
  right: 35px
33
33
  top: 35px
34
34
  @include media-breakpoint-up(lg)
35
- .menu_burger_only_mobile &
35
+ .menu-burger-only-mobile &
36
36
  display: none
37
37
  i, &::after, &::before
38
38
  background: $primary
@@ -87,7 +87,7 @@
87
87
  width: calc(50vw + min(1040px, calc(100vw - 390px)) / 2)
88
88
  @include media-breakpoint-up(lg)
89
89
  width: calc(50vw + min(1010px, calc((100vw - 100px) * (10/12) - 110px)) / 2)
90
- .menu_burger_only_mobile &
90
+ .menu-burger-only-mobile &
91
91
  background: transparent
92
92
  margin-left: auto
93
93
  padding-top: 0
@@ -113,7 +113,7 @@
113
113
  text-decoration: underline 1px
114
114
  text-underline-offset: 5px
115
115
  @include media-breakpoint-up(lg)
116
- .menu_burger_only_mobile &
116
+ .menu-burger-only-mobile &
117
117
  li:not(:first-child)
118
118
  margin-left: $grid-gutter * 2
119
119
 
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.20
4
+ version: 1.0.24
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-06 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.6
160
+ rubygems_version: 3.1.4
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Noesya theme for Jekyll.