jekyll-theme-nettoyer 0.0.8 → 0.0.9
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/_main-header.html +5 -1
- data/_layouts/home.html +26 -0
- data/_sass/components/_latest-articles.scss +44 -0
- data/_sass/nettoyer.scss +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8762ef9b84ad31247cc98ab9bf31b38d785fa713
|
4
|
+
data.tar.gz: 6b59e5954068d2ae383727f6f8468e90d9bcdad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f3da28ebfcc2d94f02f7dd25e2d4808a6b08606589d931b8ebd9e907e4fc7cb71a1fc6607920bff9c3254a295e728679f49876a30db9eec73fd12a354399a0f
|
7
|
+
data.tar.gz: 8f7a4ddfee0b20e1ca97f9adb544bf2024894c3e461a239e0adae97672a8c7959a82423756bad7f6d1750f47921102650aa9f64fea12c31dff6790fff3cc65f6
|
data/_includes/_main-header.html
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
<header class="main-header">
|
2
|
-
<h1 class="title"
|
2
|
+
<h1 class="title">
|
3
|
+
<a href="{{ site.url }}{% if site.baseurl %}{{ site.baseurl }}{% endif %}">
|
4
|
+
{{ site.name }}
|
5
|
+
</a>
|
6
|
+
</h1>
|
3
7
|
|
4
8
|
{% include _main-nav.html %}
|
5
9
|
</header>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<section class="home-wrapper">
|
6
|
+
{{ content }}
|
7
|
+
|
8
|
+
{% assign postsCount = site.posts | size %}
|
9
|
+
{% if postsCount != 0 %}
|
10
|
+
<section class="latest-articles">
|
11
|
+
<h2 class="title">Latest articles</h2>
|
12
|
+
|
13
|
+
<ul class="articles">
|
14
|
+
{% for article in site.posts %}
|
15
|
+
<li>
|
16
|
+
<a class="article" href="{{ article.url }}">
|
17
|
+
<h3 class="title">{{ article.title }}</h3>
|
18
|
+
<time class="date">{{ article.date }}</time>
|
19
|
+
<p class="excerpt">{{ article.excerpt }}</p>
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
{% endfor %}
|
23
|
+
</ul>
|
24
|
+
</section>
|
25
|
+
{% endif %}
|
26
|
+
</section>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.latest-articles {
|
2
|
+
@extend %section-commom;
|
3
|
+
|
4
|
+
margin-top: 50px;
|
5
|
+
border-top: 1px solid $c_lightgray;
|
6
|
+
|
7
|
+
> .articles {
|
8
|
+
> li {
|
9
|
+
list-style-type: none;
|
10
|
+
|
11
|
+
&:not(:last-child) { @extend %section-commom; }
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.article {
|
16
|
+
display: block;
|
17
|
+
padding: 15px;
|
18
|
+
border: 1px solid $c_smoke-gray;
|
19
|
+
border-radius: 5px;
|
20
|
+
list-style-type: none;
|
21
|
+
|
22
|
+
&:hover {
|
23
|
+
border-color: $c_red;
|
24
|
+
transition: all .5s;
|
25
|
+
}
|
26
|
+
|
27
|
+
> .title {
|
28
|
+
margin-top: 0;
|
29
|
+
margin-bottom: 5px;
|
30
|
+
color: $c_darkgray;
|
31
|
+
}
|
32
|
+
|
33
|
+
> .date {
|
34
|
+
font-size: 14px;
|
35
|
+
color: $c_gray;
|
36
|
+
}
|
37
|
+
|
38
|
+
> .excerpt {
|
39
|
+
margin-bottom: 0;
|
40
|
+
font-size: 18px;
|
41
|
+
color: $c_darkgray;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
data/_sass/nettoyer.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luan Vicente
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -67,9 +67,11 @@ files:
|
|
67
67
|
- _includes/_main-nav.html
|
68
68
|
- _layouts/default.html
|
69
69
|
- _layouts/error.html
|
70
|
+
- _layouts/home.html
|
70
71
|
- _layouts/log.html
|
71
72
|
- _layouts/page.html
|
72
73
|
- _layouts/post.html
|
74
|
+
- _sass/components/_latest-articles.scss
|
73
75
|
- _sass/components/_main-footer.scss
|
74
76
|
- _sass/components/_main-header.scss
|
75
77
|
- _sass/components/_main-nav.scss
|