jekyll-theme-nettoyer 0.0.14 → 0.0.15

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: c4921ed2cf4411557d3ae77844cebca621ea2c2e
4
- data.tar.gz: 842d3ce06fa4161c90ff1739e8c3a4ca63892c34
3
+ metadata.gz: e1b2185b64ffc0aa0e4bc155be57be0d0b3738d7
4
+ data.tar.gz: 36520cac7ee5d694b54a2b1f9afebee0626c29f0
5
5
  SHA512:
6
- metadata.gz: 9cf865d017ee6732000befd2e012466c2f1058dda26a20d386038c6f16b0e4fb3d5eb8c5e4c2cee9dc3fd76b28e61f92564930e8057a00dd2ee96af3bc74dd1b
7
- data.tar.gz: 5af2e399f707735d7a9be88faf6e61dd25fd216a8d120568a2202809f6ad87739222e33f7e01f5bc430746e2c669b9eb3c909636b439ba36aed783c38455fbeb
6
+ metadata.gz: 578bef1643512167749acefbc19097ac12f9fdd018e239a999816a13be74946c671d8c87de71c9ee207c957720766cde474fb3d344fe4c1ca4021dbddb3fac72
7
+ data.tar.gz: 2a250e128e226b319753e6e46768db19aab1e67485f5a03193d8deccbf90773e9d72a8743ebfbe87ae60f41932a005214a0c68ba5f5b5d951a3b37f71193eb2b
@@ -0,0 +1,23 @@
1
+ {% assign posts_count = site.posts | size %}
2
+
3
+ {% if posts_count != 0 %}
4
+ <ul class="articles-list">
5
+ {% for article in site.posts limit:3 %}
6
+ <li class="articles-list__item">
7
+ {% if article.external_link %}
8
+ <a class="articles-list__link" href="{{ article.external_link }}"
9
+ target="_blank">
10
+ {% else %}
11
+ <a class="articles-list__link" href="{{ article.url }}">
12
+ {% endif %}
13
+ <h3 class="articles-list__title">{{ article.title }}</h3>
14
+ <time class="articles-list__date">
15
+ {{ article.date | date_to_string }}
16
+ </time>
17
+ </a>
18
+ </li>
19
+ {% endfor %}
20
+ </ul>
21
+ {% else %}
22
+ <p>{{ site.data.i18n[site.locale].articles_not_found | default: 'no articles posted yet' }}</p>
23
+ {% endif %}
@@ -8,16 +8,12 @@
8
8
  {% assign articles_page = site.pages | where: 'layout', 'articles' %}
9
9
  {% assign pages = pages | concat: articles_page %}
10
10
 
11
- <!-- Remove the two lines below to avoid the ChangeLog. -->
12
- {% assign logs = site.pages | where: 'layout', 'log' %}
13
- {% assign pages = pages | concat: logs %}
14
-
15
11
  {% for menu in pages %}
16
- <li class="main-nav__item">
17
- <a href="{{ menu.permalink | absolute_url }}">
18
- {{ menu.title }}
19
- </a>
20
- </li>
12
+ {% if menu.resource == true %}
13
+ <li class="main-nav__item">
14
+ <a href="{{ menu.permalink | absolute_url }}">{{ menu.title }}</a>
15
+ </li>
16
+ {% endif %}
21
17
  {% endfor %}
22
18
  </ul>
23
19
  </nav>
@@ -10,6 +10,6 @@ layout: default
10
10
  {{ site.data.i18n[site.locale].latest_articles | default: 'latest articles' }}
11
11
  </h2>
12
12
 
13
- {% include _articles-list.html %}
13
+ {% include _latest-articles.html %}
14
14
  </section>
15
15
  </section>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  # Import of the main nettoyer Sass file.
3
+ resource: false
3
4
  ---
4
5
 
5
6
  @import 'nettoyer';
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.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luan Vicente
@@ -65,6 +65,7 @@ files:
65
65
  - _includes/_breadcrumbs.html
66
66
  - _includes/_google-analytics.html
67
67
  - _includes/_head.html
68
+ - _includes/_latest-articles.html
68
69
  - _includes/_main-footer.html
69
70
  - _includes/_main-header.html
70
71
  - _includes/_main-nav.html