jekyll-theme-consulting 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1c0a94a8fd674ec8cf3a038ae6eb93c63dae684
4
- data.tar.gz: 671c3081551be3800ec56b2b11a61025fad1cf0c
3
+ metadata.gz: d7d07c3882397d91631cdfa6df6e0ce5238342fa
4
+ data.tar.gz: a0467718ab2ebe4166c30f359abaa3fcd2b44a28
5
5
  SHA512:
6
- metadata.gz: 35f2ba4c952ab663bdb4919ce0d20968b0d744a1141a35ac77a556f48400e7aa9ae5e5ca0682ed48329ddec3a6ad6ade86aa4187b6c9bb91d7a694fa195e5f3b
7
- data.tar.gz: 4d4ada651313eb2c5f8b6b01c2463f558b98ba0b8d0d22709260d913955e636d8bf7559936f45fd5a69f463ce0155e7b4ddfb43bf3882d083585ecbdce736c7d
6
+ metadata.gz: 98d105a88a779f09ef9f3ee085a3d1b3c4968c7c3139641b0ebac4befc1ee340cd5fec7bb5668cf66595c6c8b0d32d72ef67ee948b036c4142210c8afa4ca269
7
+ data.tar.gz: bf1bffd8dd309b08a24dc53d9b2a65754c09d220b4049e7a219fe91ba09254daf89d4939d3e032968cc487930c39b63beb01e0c8a83c263ed5f353cc7936d31b
@@ -0,0 +1,24 @@
1
+ {% assign day = include.date | date: "%-d" %}
2
+ {% assign month = include.date | date: "%-m" %}
3
+ {% if page.lang == "en" %}
4
+ {{ include.date | date: "%B" }} {{ day }}, {{ include.date | date: "%Y" }}
5
+ {% elsif page.lang == "fr" %}
6
+ {% if day == "1" %}
7
+ {{ day }}<sup>er</sup>
8
+ {% else %} {{ day }}
9
+ {% endif %}
10
+ {% case month %}
11
+ {% when '1' %}janvier
12
+ {% when '2' %}février
13
+ {% when '3' %}mars
14
+ {% when '4' %}avril
15
+ {% when '5' %}mai
16
+ {% when '6' %}juin
17
+ {% when '7' %}juillet
18
+ {% when '8' %}août
19
+ {% when '9' %}septembre
20
+ {% when '10' %}octobre
21
+ {% when '11' %}novembre
22
+ {% when '12' %}décembre
23
+ {% endcase %} {{ include.date | date: "%Y" }}
24
+ {% endif %}
@@ -1,4 +1,5 @@
1
1
  <!-- Footer -->
2
2
  <footer id="footer">
3
- <p class="copyright">&copy; {{ site.copyright_holder }}. All rights reserved. Design: <a href="https://github.com/moodule">MOODULE</a>.
3
+ <p class="copyright">&copy; {{ site.copyright_holder }}. All rights reserved.<br />
4
+ Design: <a href="https://github.com/moodule">MOODULE</a>.</p>
4
5
  </footer>
data/_includes/head.html CHANGED
@@ -1,8 +1,14 @@
1
+ {% assign posts=site.posts | where:"lang-ref", page.lang-ref | sort: 'lang' %}
2
+ {% assign pages=site.pages | where:"lang-ref", page.lang-ref | sort: 'lang' | concat: posts %}
3
+
1
4
  <head>
2
5
  <title>{{ include.title }} - {{ include.subtitle }}</title>
3
6
  <meta charset="utf-8" />
4
7
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
5
8
  <link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}" />
9
+ {% for page in pages %}
10
+ <link rel="alternate" hreflang="{{ page.lang }}" href="{{ page.url }}" />
11
+ {% endfor %}
6
12
  <noscript><link rel="stylesheet" href="{{ 'assets/css/noscript.css' | absolute_url }}" /></noscript>
7
13
  {% if site.favicon_url %}<link rel="icon" href="{{ site.favicon_url | absolute_url }}" />{% endif %}
8
14
  <!--[if lte IE 8]><script src="{{ 'assets/js/ie/html5shiv.js' | absolute_url }}"></script><![endif]-->
@@ -1,14 +1,10 @@
1
1
  {% assign posts=site.posts | where:"lang-ref", page.lang-ref | sort: 'lang' %}
2
- {% assign pages=site.pages | where:"lang-ref", page.lang-ref | sort: 'lang' %}
3
-
4
- {% for post in posts %}
5
- <li>
6
- <a href="{{ post.url | absolute_url }}" class="{{ post.lang }}">{{ post.lang }}</a>
7
- </li>
8
- {% endfor %}
2
+ {% assign pages=site.pages | where:"lang-ref", page.lang-ref | sort: 'lang' | concat: posts %}
9
3
 
10
4
  {% for page in pages %}
5
+ {% if page.lang != "x-default" %}
11
6
  <li>
12
7
  <a href="{{ page.url | absolute_url }}" class="{{ page.lang }}">{{ page.lang }}</a>
13
8
  </li>
9
+ {% endif%}
14
10
  {% endfor %}
@@ -1,3 +1,5 @@
1
+ ---
2
+ ---
1
3
  {% assign lang = page.lang | default: site.lang | default: 'en' %}
2
4
  {% assign menu = site.data.translations.menu[page.menu][lang] %}
3
5
  {% assign title = page.title | default: site.title %}
@@ -1,3 +1,5 @@
1
+ ---
2
+ ---
1
3
  {% assign lang = page.lang | default: site.lang | default: 'en' %}
2
4
  {% assign menu = site.data.translations.menu[page.menu][lang] %}
3
5
  {% assign title = page.title | default: site.title %}
data/_layouts/post.html CHANGED
@@ -7,12 +7,11 @@ layout: default
7
7
  <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
8
  <p class="post-meta">
9
9
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
11
- {{ page.date | date: date_format }}
10
+ {% include date.html date=page.date %}
12
11
  </time>
13
- {%- if page.author -%}
12
+ {% if page.author %}
14
13
  • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
15
- {%- endif -%}
14
+ {% endif %}
16
15
  </p>
17
16
  </header>
18
17
 
@@ -20,9 +19,9 @@ layout: default
20
19
  {{ content }}
21
20
  </div>
22
21
 
23
- {%- if site.disqus.shortname -%}
24
- {%- include disqus_comments.html -%}
25
- {%- endif -%}
22
+ {% if site.disqus.shortname %}
23
+ {% include disqus_comments.html %}
24
+ {% endif %}
26
25
 
27
26
  <a class="u-url" href="{{ page.url | absolute_url }}" hidden></a>
28
27
  </article>
@@ -1,4 +1,5 @@
1
1
  ---
2
+ lang: x-default
2
3
  ---
3
4
  <!doctype html>
4
5
  <html>
@@ -10,6 +10,7 @@
10
10
  form {
11
11
  @include icon;
12
12
  position: relative;
13
+ margin-left: 4em;
13
14
 
14
15
  &:before {
15
16
  @include vendor('transform', 'scaleX(-1)');
@@ -89,11 +90,11 @@
89
90
  border: 0;
90
91
  display: block;
91
92
  height: 7.5em;
92
- left: _size(sidebar-width);
93
+ left: 0;
93
94
  line-height: 7.5em;
94
95
  outline: 0;
95
96
  overflow: hidden;
96
- position: absolute;
97
+ position: fixed;
97
98
  text-align: center;
98
99
  text-indent: 7.5em;
99
100
  top: 0;
@@ -135,7 +136,7 @@
135
136
 
136
137
  .toggle {
137
138
  height: 6.25em;
138
- left: _size(sidebar-width-alt);
139
+ left: 0;
139
140
  line-height: 6.25em;
140
141
  text-indent: 5em;
141
142
  width: 5em;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-consulting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Mougeolle
@@ -64,6 +64,7 @@ files:
64
64
  - _includes/banner.html
65
65
  - _includes/bouncing.svg
66
66
  - _includes/contact.html
67
+ - _includes/date.html
67
68
  - _includes/footer.html
68
69
  - _includes/head.html
69
70
  - _includes/header.html