jekyll-theme-nettoyer 0.0.5 → 0.0.6

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: '087f17af20f3f97cd4e9a7c672b36f2071320a33'
4
- data.tar.gz: 7d120e3571488a75f10cde3898d11d0620ddbb3f
3
+ metadata.gz: 7c355f574dbc12287b5c2b0ea64f62482d7ffadf
4
+ data.tar.gz: f61df5ea09fc7bd1513ff597b322c93359820cf7
5
5
  SHA512:
6
- metadata.gz: 5f0e20024ca969eb1309c8524a78281802ff1d1e629b344c520ef3a862e5feec6ee674bb618cd27d6cf3f8eda410af4fd3fcf2b83c320a38fa5e47699293ce4a
7
- data.tar.gz: 39f36ddc2d41581c922fad55f78a5909895d7b2a8db752edd16acb904dd84538a5aeb7f541ce540c1e25c4048579cf66dfe7c01c309226180955b58069f62a62
6
+ metadata.gz: 1db247051b38e638f94c80e17de4abb1ad2d99c61ac214f05b9625b77a04a27183b0859d26f0597ff9f78c4108eb0f6cc61699511872d369b011c00044e74a17
7
+ data.tar.gz: cba1519d37eaeba1f1850c972404f538ffae72aa4822f84d1c42cac88f543881352f32510b351cdf46b8d13b519524e4d97efcfb7a20ef3b0f1d6350fb75b6c2
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [cibuild]: https://travis-ci.org/idlua/jekyll-theme-nettoyer
6
6
  [cibuild-badge]: https://travis-ci.org/idlua/jekyll-theme-nettoyer.svg?branch=master
7
7
 
8
- [gem]: https://badge.fury.io/rb/jekyll-theme-nettoyer
8
+ [gem]: https://rubygems.org/gems/jekyll-theme-nettoyer
9
9
  [gem-badge]: https://badge.fury.io/rb/jekyll-theme-nettoyer.svg
10
10
 
11
11
 
@@ -1,11 +1,22 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
- <meta name="description" content="{{ site.description }}">
4
+
5
+ {% if page.description %}
6
+ <meta name="description" content="{{ page.description }}">
7
+ {% endif %}
8
+
9
+ {% unless page.description %}
10
+ <meta name="description" content="{{ site.description }}">
11
+ {% endunless %}
12
+
5
13
  <meta name="theme-color" content="#333">
6
14
 
7
15
  <link rel="shortcut icon" type="image/x-icon" href="{{ '/assets/favicon.ico' | relative_url }}">
8
16
  <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
9
17
 
10
- <title>{{ site.title }}</title>
18
+ <title>
19
+ {{ site.name }}
20
+ {% if page.title %} {{ page.title | prepend: '| ' }} {% endif %}
21
+ </title>
11
22
  </head>
@@ -2,9 +2,17 @@
2
2
  <h2 class="title">Main navigation</h2>
3
3
 
4
4
  <ul class="menu-list">
5
- {% for menu in site.nav%}
5
+ {% assign pages = site.pages | where: 'layout', 'page' %}
6
+
7
+ <!-- Remove the two lines below to avoid the ChangeLog. -->
8
+ {% assign logs = site.pages | where: 'layout', 'log' %}
9
+ {% assign pages = pages | concat: logs %}
10
+
11
+ {% for menu in pages %}
6
12
  <li class="menu">
7
- <a class="link" href="{{ menu.url | relative_url }}">{{ menu.name }}</a>
13
+ <a class="link" href="{{ menu.permalink | relative_url }}">
14
+ {{ menu.title }}
15
+ </a>
8
16
  </li>
9
17
  {% endfor %}
10
18
  </ul>
@@ -0,0 +1,8 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.locale }}">
3
+ {% include _head.html %}
4
+
5
+ <body>
6
+ <main class="error-content">{{ content }}</main>
7
+ </body>
8
+ </html>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h2 class="title">{{ page.title }}</h2>
6
+
7
+ <section class="log-content">{{ content }}</section>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h2 class="title">{{ page.title }}</h2>
6
+
7
+ <section class="page-content">{{ content }}</section>
@@ -0,0 +1,14 @@
1
+ .error-content {
2
+ @extend %content-wrapper;
3
+
4
+ margin-top: 25%;
5
+ text-align: center;
6
+
7
+ /* @media 1024px */
8
+ @media (min-width: 1024px) { margin-top: 15%; }
9
+
10
+ > h2 { font-size: 45px; }
11
+ > h3 { font-weight: $f_weight-regular; }
12
+ > h4 { font-style: italic; }
13
+ > p { font-size: 14px; }
14
+ }
@@ -0,0 +1,17 @@
1
+ .log-content {
2
+ font-family: $f_primary;
3
+
4
+ a { text-decoration: underline; }
5
+ strong { color: $c_gray; }
6
+ p {
7
+ font-size: 14px;
8
+ font-style: italic;
9
+ }
10
+
11
+ li {
12
+ margin-left: 20px;
13
+
14
+ /* @media 1024px */
15
+ @media (min-width: 1024px) { margin-left: 0; }
16
+ }
17
+ }
@@ -8,3 +8,6 @@
8
8
  @import 'components/main-nav';
9
9
  @import 'components/main-content';
10
10
  @import 'components/main-footer';
11
+
12
+ @import 'components/error-template';
13
+ @import 'components/log-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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luan Vicente
@@ -66,6 +66,11 @@ files:
66
66
  - _includes/_main-header.html
67
67
  - _includes/_main-nav.html
68
68
  - _layouts/default.html
69
+ - _layouts/error.html
70
+ - _layouts/log.html
71
+ - _layouts/page.html
72
+ - _sass/components/_error-template.scss
73
+ - _sass/components/_log-template.scss
69
74
  - _sass/components/_main-content.scss
70
75
  - _sass/components/_main-footer.scss
71
76
  - _sass/components/_main-header.scss