jekyll-theme-nettoyer 0.0.15 → 0.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1b2185b64ffc0aa0e4bc155be57be0d0b3738d7
4
- data.tar.gz: 36520cac7ee5d694b54a2b1f9afebee0626c29f0
3
+ metadata.gz: 17094f46eb026ab71eaa86efe4d2862d1a782fc6
4
+ data.tar.gz: bae2192dd20c7514e6847fd425267eca5ac208a6
5
5
  SHA512:
6
- metadata.gz: 578bef1643512167749acefbc19097ac12f9fdd018e239a999816a13be74946c671d8c87de71c9ee207c957720766cde474fb3d344fe4c1ca4021dbddb3fac72
7
- data.tar.gz: 2a250e128e226b319753e6e46768db19aab1e67485f5a03193d8deccbf90773e9d72a8743ebfbe87ae60f41932a005214a0c68ba5f5b5d951a3b37f71193eb2b
6
+ metadata.gz: c1d36b3808ed86c0617199e1a6b0afe7f4c667cd7e7161365f9f6cea6818955f33fff8093093688a58194cb35df4aba15243df80d05ce10243122dfc5fb6ca2b
7
+ data.tar.gz: 3b8bde9ec55329b94a4e451e9b08674239e66da4cdb7a9daf17f0d7bd844e8f62fa61fe204695c175c572aef667e04bc4dc6b819895cd6cd8332ce2dca20ac1e
@@ -8,6 +8,11 @@
8
8
  {% assign articles_page = site.pages | where: 'layout', 'articles' %}
9
9
  {% assign pages = pages | concat: articles_page %}
10
10
 
11
+ {% if site.nav %}
12
+ {% assign external_pages = site.nav %}
13
+ {% assign pages = pages | concat: external_pages %}
14
+ {% endif %}
15
+
11
16
  {% for menu in pages %}
12
17
  {% if menu.resource == true %}
13
18
  <li class="main-nav__item">
data/_layouts/error.html CHANGED
@@ -3,6 +3,16 @@
3
3
  {% include _head.html %}
4
4
 
5
5
  <body>
6
- <main class="wrapper-error">{{ content }}</main>
6
+ <main class="wrapper-error error">
7
+ <h2 class="error__title">{{ page.title }}</h2>
8
+
9
+ {{ content }}
10
+
11
+ <p class="error__advice">
12
+ Go back to <a class="error__advice-link" href="{{ site.url }}">
13
+ {% if site.name %}{{ site.name }}{% else %}{{ site.title }}{% endif %}.
14
+ </a>
15
+ </p>
16
+ </main>
7
17
  </body>
8
18
  </html>
data/_layouts/post.html CHANGED
@@ -38,8 +38,8 @@ layout: default
38
38
  {{ content }}
39
39
  </main>
40
40
 
41
- <footer class="article-footer">
42
- {% if page.external-link %}
41
+ {% if page.external-link %}
42
+ <footer class="article-footer">
43
43
  <section class="external-article">
44
44
  <a class="external-article__link" href="{{ page.external-link }}"
45
45
  target="_blank">
@@ -50,6 +50,6 @@ layout: default
50
50
  <p class="external-article__title">{{ page.title }}</p>
51
51
  </a>
52
52
  </section>
53
- {% endif %}
54
- </footer>
53
+ </footer>
54
+ {% endif %}
55
55
  </article>
@@ -0,0 +1,9 @@
1
+ .error {
2
+
3
+ &__title {
4
+ margin-bottom: 0;
5
+ font-size: 86px;
6
+ }
7
+
8
+ &__link { text-decoration: underline; }
9
+ }
@@ -7,7 +7,6 @@
7
7
  /* @media 1024px */
8
8
  @media (min-width: 1024px) { margin-top: 15%; }
9
9
 
10
- > h2 { font-size: 45px; }
11
10
  > h3 { font-weight: $f_weight-regular; }
12
11
  > h4 { font-style: italic; }
13
12
  > p { font-size: 14px; }
data/_sass/nettoyer.scss CHANGED
@@ -23,3 +23,4 @@
23
23
  @import 'components/social-network';
24
24
  @import 'components/footer-disclaimer';
25
25
  @import 'components/main-footer';
26
+ @import 'components/error';
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nettoyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luan Vicente
@@ -82,6 +82,7 @@ files:
82
82
  - _sass/components/_article.scss
83
83
  - _sass/components/_articles-list.scss
84
84
  - _sass/components/_breadcrumbs.scss
85
+ - _sass/components/_error.scss
85
86
  - _sass/components/_external-article.scss
86
87
  - _sass/components/_footer-disclaimer.scss
87
88
  - _sass/components/_main-footer.scss