jekyll-theme-nettoyer 0.0.10 → 0.0.11

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: d6d88a54b137d8ce8d0e38c3d666cb7337ab542a
4
- data.tar.gz: 0c1e92c6e87c9ca35e48f803e0c6261a888e8f6e
3
+ metadata.gz: 7e61f9e18b3dd8d56f7efb0bda4c4619cafc3842
4
+ data.tar.gz: 9243f7039f2de437c404f7e9de7938ac7a0065ae
5
5
  SHA512:
6
- metadata.gz: f6b417d875fd31a4255e93cfa4cc0385527613390c74f2841810bf5d163a740617a6eeb8831311a47eb223df0f1c1ab14ba723b7a5be795cdcd85816b06dc134
7
- data.tar.gz: 7a77c0081bf130de1f712d3a9d9461ce57fe351af1a52e377d1a3b834cbee2d9036df6414d5e617506dca39b0e816396240be65edfe53df28231114cc4d4b23a
6
+ metadata.gz: 6ae05e6873f5616166075bc05869e3fa5f5ad90454511c8af34bdfe9b9cbd21683ce979b10b71b7c230adf0171dac6da7b4fde46168fbffd0125f7991583309a
7
+ data.tar.gz: 0c19ab53744b1db060d0ad6a8d9696ccadcdcda48b019d91898690cd9247a7c92675e6c492cd85448ff4c64fb187ee891d7e815d6476d8d9ca820d94dde7a214
data/_layouts/home.html CHANGED
@@ -15,10 +15,9 @@ layout: default
15
15
  <ul class="articles">
16
16
  {% for article in site.posts %}
17
17
  <li>
18
- <a class="article" href="{{ article.url }}">
18
+ <a class="post-content" href="{{ article.url }}">
19
19
  <h3 class="title">{{ article.title }}</h3>
20
20
  <time class="date">{{ article.date | date_to_string }}</time>
21
- <p class="excerpt">{{ article.excerpt }}</p>
22
21
  </a>
23
22
  </li>
24
23
  {% endfor %}
data/_layouts/post.html CHANGED
@@ -17,5 +17,11 @@ layout: default
17
17
  </ul>
18
18
  </header>
19
19
 
20
- <body class="article">{{ content }}</body>
20
+ <main class="post-content">
21
+ {% if page.banner %}
22
+ <img class="banner" src="{{ page.banner }}">
23
+ {% endif %}
24
+
25
+ {{ content }}
26
+ </main>
21
27
  </article>
@@ -2,43 +2,19 @@
2
2
  @extend %section-commom;
3
3
 
4
4
  margin-top: 50px;
5
- border-top: 1px solid $c_lightgray;
5
+
6
+ > .title { color: $c_red; }
6
7
 
7
8
  > .articles {
8
9
  > li {
9
10
  list-style-type: none;
10
11
 
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
- }
12
+ &:not(:last-child) {
13
+ @extend %section-commom;
37
14
 
38
- > .excerpt {
39
- margin-bottom: 0;
40
- font-size: 18px;
41
- color: $c_darkgray;
15
+ padding-bottom: 10px;
16
+ border-bottom: 1px solid $c_smoke-gray;
17
+ }
42
18
  }
43
19
  }
44
20
  }
@@ -28,7 +28,7 @@
28
28
  text-align: center;
29
29
 
30
30
  > .disclaimer {
31
- font-family: $f_secondary;
31
+ font-family: $f_serif;
32
32
  font-size: 16px;
33
33
  color: $c_gray;
34
34
  }
@@ -0,0 +1,33 @@
1
+ .post-content {
2
+ display: block;
3
+ list-style-type: none;
4
+
5
+ > .title {
6
+ margin-top: 0;
7
+ margin-bottom: 5px;
8
+ color: $c_darkgray;
9
+ }
10
+
11
+ > .date {
12
+ font-size: 14px;
13
+ color: $c_gray;
14
+ }
15
+
16
+ > .banner {
17
+ width: 110%;
18
+ max-width: 110%;
19
+ height: 200px;
20
+ margin-left: -5%;
21
+
22
+ /* @media 768px */
23
+ @media (min-width: 768px) { height: 260px; }
24
+
25
+ /* @media 1440px */
26
+ @media (min-width: 1440px) { height: 300px; }
27
+
28
+ /* @media 2560px */
29
+ @media (min-width: 2560px) { height: 600px; }
30
+ }
31
+
32
+ code { font-family: monospace; }
33
+ }
@@ -1,6 +1,6 @@
1
1
  .post-meta {
2
2
  margin-bottom: 35px;
3
- font-family: $f_primary;
3
+ font-family: $f_sans;
4
4
 
5
5
  > .info {
6
6
  display: inline-block;
@@ -1,5 +1,5 @@
1
1
  body {
2
- font-family: $f_primary;
2
+ font-family: $f_sans;
3
3
  font-size: 18px;
4
4
  color: $c_darkgray;
5
5
  }
@@ -39,7 +39,7 @@ h5,
39
39
  h6 {
40
40
  @extend %section-commom;
41
41
 
42
- font-family: $f_primary;
42
+ font-family: $f_sans;
43
43
  font-weight: $f_weight-bold;
44
44
  }
45
45
 
@@ -1,7 +1,7 @@
1
1
  @import url('https://fonts.googleapis.com/css?family=Bellefair|Inconsolata:400,700');
2
2
 
3
- $f_primary: 'Inconsolata', sans-serif;
4
- $f_secondary: 'Bellefair', serif;
3
+ $f_sans: 'Inconsolata', sans-serif;
4
+ $f_serif: 'Bellefair', serif;
5
5
 
6
6
  $f_weight-regular: 400;
7
7
  $f_weight-bold: 700;
@@ -1,7 +1,7 @@
1
1
  .highlight {
2
2
  margin-bottom: 10px;
3
3
  padding: 10px 20px;
4
- font-family: $f_primary;
4
+ font-family: $f_sans;
5
5
  font-weight: $f_weight-regular;
6
6
 
7
7
  code,
@@ -1,5 +1,5 @@
1
1
  .log-wrapper {
2
- font-family: $f_primary;
2
+ font-family: $f_sans;
3
3
 
4
4
  a { text-decoration: underline; }
5
5
  strong { color: $c_gray; }
@@ -3,7 +3,7 @@
3
3
  @extend %content-wrapper;
4
4
 
5
5
  margin-top: 40px;
6
- font-family: $f_secondary;
6
+ font-family: $f_serif;
7
7
 
8
8
  ol,
9
9
  ul,
data/_sass/nettoyer.scss CHANGED
@@ -11,6 +11,7 @@
11
11
  @import 'components/main-footer';
12
12
  @import 'components/post-header';
13
13
  @import 'components/post-meta';
14
+ @import 'components/post-content';
14
15
  @import 'components/latest-articles';
15
16
 
16
17
  @import 'layout/main-template';
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luan Vicente
@@ -75,6 +75,7 @@ files:
75
75
  - _sass/components/_main-footer.scss
76
76
  - _sass/components/_main-header.scss
77
77
  - _sass/components/_main-nav.scss
78
+ - _sass/components/_post-content.scss
78
79
  - _sass/components/_post-header.scss
79
80
  - _sass/components/_post-meta.scss
80
81
  - _sass/core/_base.scss