jekyll-theme-consulting 0.6.7 → 0.6.8

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
  SHA256:
3
- metadata.gz: efc590e405530c187fe4864f3893eae7bc3d3893c046956bec85b649235b9271
4
- data.tar.gz: 567f397355f06e82506a47110815274216f21a1473d05de69af40beaf3ccd2b7
3
+ metadata.gz: ae0beeb530c0532d16f8699ff0642b49d5559340d92d9521e30e13fe616077cc
4
+ data.tar.gz: 39e75a202e1d76a7b6b186305cd47eaf334580ecf544d313c98bfdde7b3ac876
5
5
  SHA512:
6
- metadata.gz: 5a6a73d2af04caf7d941134bc4e6ed20f355060f499883e8163e40851e02eeedc67307b01ccb93cf01abcfe8114d5cc308c062b26809eb96e14dab23410e4135
7
- data.tar.gz: 2aac31e36681e813b166471d21f1cd1350206431275fb11fc58a10ff3cb4693670cce0ef4f720f807e5383b748b998d2fb467be95c205e4628b04a604b4f321b
6
+ metadata.gz: d6c97984b5612b38540de413a93432d9ddcb80a9646521f711ddd27163c68093c4ee6d693c3eaf5fa632023d496eb5a849744f5a9b627eabaf705ad8e0082fd4
7
+ data.tar.gz: e0426f2a2671af87ec589b87bbaba0464462bb351860f0f07d4968b55cb4e5fb2a8d5027897595e6ab0aa9f46fb5a7d3f1ab80f83cb918ec4cdb272ba40de22c
data/_includes/date.html CHANGED
@@ -1,13 +1,14 @@
1
- {% assign day = include.date | date: "%-d" %}
2
- {% assign month = include.date | date: "%-m" %}
3
- {% if page.lang == "en" %}
1
+ {%- assign day = include.date | date: "%-d" -%}
2
+ {%- assign month = include.date | date: "%-m" -%}
3
+ {%- if page.lang == "en" -%}
4
4
  {{ include.date | date: "%B" }} {{ day }}, {{ include.date | date: "%Y" }}
5
- {% elsif page.lang == "fr" %}
6
- {% if day == "1" %}
5
+ {%- elsif page.lang == "fr" -%}
6
+ {%- if day == "1" -%}
7
7
  {{ day }}<sup>er</sup>
8
- {% else %} {{ day }}
9
- {% endif %}
10
- {% case month %}
8
+ {%- else -%}
9
+ {{ day }}
10
+ {%- endif -%}
11
+ {%- case month -%}
11
12
  {% when '1' %}janvier
12
13
  {% when '2' %}février
13
14
  {% when '3' %}mars
@@ -20,5 +21,6 @@
20
21
  {% when '10' %}octobre
21
22
  {% when '11' %}novembre
22
23
  {% when '12' %}décembre
23
- {% endcase %} {{ include.date | date: "%Y" }}
24
- {% endif %}
24
+ {%- endcase -%}
25
+ {{ include.date | date: "%Y" }}
26
+ {%- endif -%}
data/_includes/head.html CHANGED
@@ -1,14 +1,20 @@
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
+ {%- 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 -%}
4
3
  <head>
5
4
  <meta charset="utf-8" />
6
5
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
7
6
  <link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}" />
8
- {% for page in pages %}
7
+ {%- if include.stylesheets -%}
8
+ {%- for file in include.stylesheets -%}
9
+ <link rel="stylesheet" href="{{ file.url | absolute_url }}" />
10
+ {%- endfor -%}
11
+ {%- endif -%}
12
+ {%- for page in pages -%}
9
13
  <link rel="alternate" hreflang="{{ page.lang }}" href="{{ page.url }}" />
10
- {% endfor %}
14
+ {%- endfor -%}
15
+ {%- if site.favicon -%}
16
+ <link rel="icon" href="{{ site.favicon | absolute_url }}" />
17
+ {%- endif -%}
11
18
  <noscript><link rel="stylesheet" href="{{ 'assets/css/noscript.css' | absolute_url }}" /></noscript>
12
- {% if site.favicon %}<link rel="icon" href="{{ site.favicon | absolute_url }}" />{% endif %}
13
19
  {% seo %}
14
20
  </head>
@@ -1,12 +1,11 @@
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
+ {%- 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 -%}
4
3
  <ul class="language">
5
- {% for page in pages %}
6
- {% if page.lang != "x-default" %}
4
+ {%- for page in pages -%}
5
+ {%- if page.lang != "x-default" -%}
7
6
  <li>
8
7
  <a href="{{ page.url | absolute_url }}" class="{{ page.lang }}">{{ page.lang }}</a>
9
8
  </li>
10
- {% endif %}
11
- {% endfor %}
9
+ {%- endif -%}
10
+ {%- endfor -%}
12
11
  </ul>
@@ -1,21 +1,21 @@
1
1
  <!-- Menu -->
2
2
  <nav id="menu">
3
3
  <ul>
4
- {% for item in include.menu %}
4
+ {%- for item in include.menu -%}
5
5
  <li {% if item.url == page.url %} class="current" {% endif %}>
6
- {% if item.menu[0] %}
6
+ {%- if item.menu[0] -%}
7
7
  <span class="opener">{{ item.title }}</span>
8
8
  <ul>
9
- {% for subitem in item.menu %}
9
+ {%- for subitem in item.menu -%}
10
10
  <li {% if subitem.url == page.url %} class="current" {% endif %}>
11
11
  <a href="{{ subitem.url | absolute_url }}">{{ subitem.title }}</a>
12
12
  </li>
13
- {% endfor %}
13
+ {%- endfor -%}
14
14
  </ul>
15
- {% else %}
15
+ {%- else -%}
16
16
  <a href="{{ item.url | absolute_url }}">{{ item.title }}</a>
17
17
  </li>
18
- {% endif %}
19
- {% endfor %}
18
+ {%- endif -%}
19
+ {%- endfor -%}
20
20
  </ul>
21
21
  </nav>
@@ -8,14 +8,14 @@
8
8
  <script src="{{ 'assets/js/cookieconsent.min.js' | absolute_url }}" data-cfasync="false"></script>
9
9
  <script>
10
10
  window.cookieconsent.initialise({
11
- "palette": {
12
- "popup": {
13
- "background": "#252e39"
14
- },
15
- "button": {
16
- "background": "#14a7d0"
17
- }
18
- }
11
+ "palette": {
12
+ "popup": {
13
+ "background": "#252e39"
14
+ },
15
+ "button": {
16
+ "background": "#14a7d0"
17
+ }
18
+ }
19
19
  });
20
20
  </script>
21
21
  <script src="{{ 'assets/js/simple-jekyll-search.min.js' | absolute_url }}" type="text/javascript"></script>
@@ -23,6 +23,11 @@ window.cookieconsent.initialise({
23
23
  SimpleJekyllSearch({
24
24
  searchInput: document.getElementById('search-input'),
25
25
  resultsContainer: document.getElementById('search-results'),
26
- json: "{{ '/index.json' | absolute_url }}"
26
+ json: "{{ '/index.json' | absolute_url }}"
27
27
  })
28
28
  </script>
29
+ {%- if include.scripts -%}
30
+ {%- for file in include.scripts -%}
31
+ <script src="{{ file.url | absolute_url }}" /></script>
32
+ {%- endfor -%}
33
+ {%- endif -%}
@@ -1,38 +1,38 @@
1
1
  <!-- Social Icons -->
2
2
  <div id="social">
3
3
  <ul class="icons">
4
- {% if site.twitter.url %}
4
+ {%- if site.twitter.url -%}
5
5
  <li><a href="{{ site.twitter.url }}" class="icon brands fa-twitter" target="_blank"><span class="label">Twitter</span></a></li>
6
- {% endif %}
7
- {% if site.facebook.url %}
6
+ {%- endif -%}
7
+ {%- if site.facebook.url -%}
8
8
  <li><a href="{{ site.facebook.url }}" class="icon brands fa-facebook-f" target="_blank"><span class="label">Facebook</span></a></li>
9
- {% endif %}
10
- {% if site.snapchat.url %}
9
+ {%- endif -%}
10
+ {%- if site.snapchat.url -%}
11
11
  <li><a href="{{ site.snapchat.url }}" class="icon brands fa-snapchat-ghost" target="_blank"><span class="label">Snapchat</span></a></li>
12
- {% endif %}
13
- {% if site.medium.url %}
12
+ {%- endif -%}
13
+ {%- if site.medium.url -%}
14
14
  <li><a href="{{ site.medium.url }}" class="icon brands fa-medium-m" target="_blank"><span class="label">Medium</span></a></li>
15
- {% endif %}
16
- {% if site.instagram.url %}
15
+ {%- endif -%}
16
+ {%- if site.instagram.url -%}
17
17
  <li><a href="{{ site.instagram.url }}" class="icon brands fa-instagram" target="_blank"><span class="label">Instagram</span></a></li>
18
- {% endif %}
19
- {% if site.pinterest.url %}
18
+ {%- endif -%}
19
+ {%- if site.pinterest.url -%}
20
20
  <li><a href="{{ site.pinterest.url }}" class="icon brands fa-pinterest" target="_blank"><span class="label">Pinterest</span></a></li>
21
- {% endif %}
22
- {% if site.500px.url %}
21
+ {%- endif -%}
22
+ {%- if site.500px.url -%}
23
23
  <li><a href="{{ site.500px.url }}" class="icon brands fa-500px" target="_blank"><span class="label">500px</span></a></li>
24
- {% endif %}
25
- {% if site.gitlab.url %}
24
+ {%- endif -%}
25
+ {%- if site.gitlab.url -%}
26
26
  <li><a href="{{ site.gitlab.url }}" class="icon brands fa-gitlab" target="_blank"><span class="label">GitLab</span></a></li>
27
- {% endif %}
28
- {% if site.github.url %}
27
+ {%- endif -%}
28
+ {%- if site.github.url -%}
29
29
  <li><a href="{{ site.github.url }}" class="icon brands fa-github" target="_blank"><span class="label">GitHub</span></a></li>
30
- {% endif %}
31
- {% if site.slack.url %}
30
+ {%- endif -%}
31
+ {%- if site.slack.url -%}
32
32
  <li><a href="{{ site.slack.url }}" class="icon brands fa-slack" target="_blank"><span class="label">Slack</span></a></li>
33
- {% endif %}
34
- {% if site.linkedin.url %}
33
+ {%- endif -%}
34
+ {%- if site.linkedin.url -%}
35
35
  <li><a href="{{ site.linkedin.url }}" class="icon brands fa-linkedin" target="_blank"><span class="label">LinkedIn</span></a></li>
36
- {% endif %}
36
+ {%- endif -%}
37
37
  </ul>
38
38
  </div>
@@ -1,6 +1,5 @@
1
- {% assign posts=site.posts | where:"lang", page.lang %}
2
- {% assign date_format = site.date_format | default: "%b %-d, %Y" %}
3
-
1
+ {%- assign posts=site.posts | where:"lang", page.lang -%}
2
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
4
3
  {%- if posts.size > 0 -%}
5
4
  <section>
6
5
  <header class="major">
@@ -17,7 +16,7 @@
17
16
  <li><a href="{{ post.url | absolute_url }}" class="button">More</a></li>
18
17
  </ul>
19
18
  </article>
20
- {% endfor %}
19
+ {%- endfor -%}
21
20
  </div>
22
21
  </section>
23
22
 
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  ---
3
- {% assign lang = page.lang | default: site.lang | default: 'en' %}
4
- {% assign menu = site.data.menus[page.menu][lang] %}
5
- {% assign header = page.header | default: site.header %}
6
- {% assign title = page.title | default: site.title %}
7
- {% assign description = page.description | default: site.description %}
8
-
3
+ {%- assign lang = page.lang | default: site.lang | default: 'en' -%}
4
+ {%- assign menu = site.data.menus[page.menu][lang] -%}
5
+ {%- assign header = page.header | default: site.header -%}
6
+ {%- assign title = page.title | default: site.title -%}
7
+ {%- assign description = page.description | default: site.description -%}
8
+ {%- assign stylesheets = page.stylesheets | default: site.stylesheets -%}
9
+ {%- assign scripts = page.scripts | default: site.scripts -%}
9
10
  <!DOCTYPE html>
10
11
  <!--
11
12
  Consulting template by MOODULE
@@ -14,7 +15,7 @@
14
15
  -->
15
16
  <html lang="{{ lang }}">
16
17
 
17
- {% include head.html title=title description=description %}
18
+ {% include head.html title=title description=description stylesheets=stylesheets %}
18
19
 
19
20
  <body>
20
21
 
@@ -38,7 +39,7 @@
38
39
 
39
40
  {% include footer.html %}
40
41
 
41
- {% include scripts.html %}
42
+ {% include scripts.html scripts=scripts %}
42
43
 
43
44
  </body>
44
45
 
data/_layouts/home.html CHANGED
@@ -1,11 +1,9 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% assign banner = page.banner | default: site.banner %}
5
- {% assign title = banner.title | default: page.title | default: site.title %}
6
- {% assign subtitle = banner.subtitle | default: page.subtitle | default: site.subtitle %}
7
- {% assign description = banner.description | default: page.description | default: site.description %}
8
-
4
+ {%- assign banner = page.banner | default: site.banner -%}
5
+ {%- assign title = banner.title | default: page.title | default: site.title -%}
6
+ {%- assign subtitle = banner.subtitle | default: page.subtitle | default: site.subtitle -%}
7
+ {%- assign description = banner.description | default: page.description | default: site.description -%}
9
8
  {% include banner.html title=title subtitle=subtitle description=description button=banner.button style=banner.style %}
10
-
11
9
  {{ content }}
data/_layouts/index.html CHANGED
@@ -1,21 +1,17 @@
1
1
  ---
2
2
  permalink: /index.json
3
3
  ---
4
-
5
- {% assign posts=site.posts | sort: 'lang' %}
6
- {% assign pages=site.html_pages | sort: 'lang' | concat: posts %}
7
-
4
+ {%- assign posts=site.posts | sort: 'lang' -%}
5
+ {%- assign pages=site.html_pages | sort: 'lang' | concat: posts -%}
8
6
  [
9
- {% for page in pages %}
7
+ {%- for page in pages -%}
10
8
  {
11
-
12
9
  "lang" : "{{ page.lang }}",
13
10
  "title" : "{{ page.title | default: site.title | escape }}",
14
11
  "description" : "{{ page.description | default: site.description | strip_html | strip_newlines | escape }}",
15
12
  "url" : "{{ site.url }}{{ site.baseurl }}{{ page.url }}",
16
13
  "tags" : "{{ page.tags | join: ', ' }}",
17
14
  "date" : "{{ page.date }}"
18
-
19
15
  } {% unless forloop.last %},{% endunless %}
20
- {% endfor %}
16
+ {%- endfor -%}
21
17
  ]
@@ -1,15 +1,14 @@
1
1
  ---
2
2
  ---
3
- {% assign lang = page.lang | default: site.lang | default: 'en' %}
4
- {% assign menu = site.data.menus[page.menu][lang] %}
5
- {% assign title = page.title | default: site.title %}
6
- {% assign subtitle = page.subtitle | default: site.subtitle %}
7
- {% assign description = page.description | default: site.description %}
8
-
3
+ {%- assign lang = page.lang | default: site.lang | default: 'en' -%}
4
+ {%- assign menu = site.data.menus[page.menu][lang] -%}
5
+ {%- assign title = page.title | default: site.title -%}
6
+ {%- assign subtitle = page.subtitle | default: site.subtitle -%}
7
+ {%- assign description = page.description | default: site.description -%}
9
8
  <!DOCTYPE html>
10
9
  <html lang="{{ lang }}">
11
10
 
12
- {% include head.html title=title subtitle=subtitle%}
11
+ {% include head.html title=title subtitle=subtitle %}
13
12
 
14
13
  <body>
15
14
 
data/_layouts/post.html CHANGED
@@ -9,9 +9,9 @@ layout: default
9
9
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10
10
  {% include date.html date=page.date %}
11
11
  </time>
12
- {% if page.author %}
12
+ {%- if page.author -%}
13
13
  • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
14
- {% endif %}
14
+ {%- endif -%}
15
15
  </p>
16
16
  </header>
17
17
 
@@ -19,9 +19,9 @@ layout: default
19
19
  {{ content }}
20
20
  </div>
21
21
 
22
- {% if site.disqus.shortname %}
22
+ {%- if site.disqus.shortname -%}
23
23
  {% include disqus_comments.html %}
24
- {% endif %}
24
+ {%- endif -%}
25
25
 
26
26
  <a class="u-url" href="{{ page.url | absolute_url }}" hidden></a>
27
27
  </article>
@@ -3,18 +3,18 @@ permalink: /sitemap.xml
3
3
  ---
4
4
  <?xml version="1.0" encoding="UTF-8"?>
5
5
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
6
- {% assign posts=site.posts | sort: 'lang' %}
7
- {% assign pages=site.html_pages | sort: 'lang' | concat: posts %}
8
- {% for page in pages %}
9
- {% assign versions=pages | where:"lang-ref", page.lang-ref %}
10
- {% unless page.url contains "404" %}
6
+ {%- assign posts=site.posts | sort: 'lang' -%}
7
+ {%- assign pages=site.html_pages | sort: 'lang' | concat: posts -%}
8
+ {%- for page in pages -%}
9
+ {%- assign versions=pages | where:"lang-ref", page.lang-ref -%}
10
+ {%- unless page.url contains "404" -%}
11
11
  <url>
12
12
  <loc>{{ page.url | absolute_url}}</loc>
13
- {% for version in versions %}
13
+ {%- for version in versions -%}
14
14
  <xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ version.url | absolute_url }}" />
15
- {% endfor %}
15
+ {%- endfor -%}
16
16
  <changefreq>weekly</changefreq>
17
17
  </url>
18
- {% endunless %}
19
- {% endfor %}
18
+ {%- endunless -%}
19
+ {%- endfor -%}
20
20
  </urlset>