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 +4 -4
- data/_includes/_latest-articles.html +23 -0
- data/_includes/_main-nav.html +5 -9
- data/_layouts/home.html +1 -1
- data/assets/css/style.scss +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1b2185b64ffc0aa0e4bc155be57be0d0b3738d7
|
4
|
+
data.tar.gz: 36520cac7ee5d694b54a2b1f9afebee0626c29f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 %}
|
data/_includes/_main-nav.html
CHANGED
@@ -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
|
-
|
17
|
-
<
|
18
|
-
{{ menu.title }}
|
19
|
-
</
|
20
|
-
|
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>
|
data/_layouts/home.html
CHANGED
data/assets/css/style.scss
CHANGED
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.
|
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
|