jekyll-theme-parallelism 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 989a30e67b9782c86952aed48144403d6cc087d5047bb6b886679b65d9a102be
4
- data.tar.gz: edee53ea3932ba4ee175babf5760fc733a6ccc601a83b9ce9a8c04453d9b4029
3
+ metadata.gz: e10d38fdc1ff83607c2d07ea2c3e3334f2b55fdfcd1fac02364d2b15a626990d
4
+ data.tar.gz: 745a3b7350e169493c1bfe03fea6ab683d390ccd4470a51ce24f2064339d25d5
5
5
  SHA512:
6
- metadata.gz: 91468796f5ef187c8fe04aa3c2fc69e9303fe904c3e9bb11206b63e9db1cc7e6d434ec3827a9acd6776304f31ea2d41f1cbf59745cae9f5eefc25e82c3b6d13f
7
- data.tar.gz: 5870c44b46e3578dbfa098a46ec07d260c75bbeb167b4be57f480a8d738d8e65b6e38e26a419d212afdfbf3defd46e68033310c6df3797c4ef579e0129619891
6
+ metadata.gz: f638fe3d5496a6569817aaf358217a5cd409c5af5d4ae9352c37d54066794e966cdb9175ae960bfe018064701a64b58c6da37aa6eaf4ca65c675f8b6e84beadd
7
+ data.tar.gz: 3cf56cea54f671a11d4b249a8797985557ce245bb947288332fbe53078fa90390cde67c7dd7121fae26bfd5a7a742875dcbc3961659f7ffde05f81c533593d78
data/README.md CHANGED
@@ -6,6 +6,18 @@ You can preview the theme [here](https://moodule.github.io/jekyll-theme-parallel
6
6
 
7
7
  ![Parallelism Theme](assets/images/screenshot.jpg "Parallelism Theme")
8
8
 
9
+ # Features
10
+
11
+ > **Responsive**: out of the box support for all screen sizes, be it smartphones, laptops, tablets...
12
+
13
+ > **Multilingual**: easily manage pages, menu, url, dates, sitemap in several languages
14
+
15
+ > **Customizable**: theme colors, menu, social items can be changed from a central config file
16
+
17
+ > **GDPR ready**: bundled with a cookie consent plugin and a boilerplate privacy policy compliant with GDPR
18
+
19
+ > **SEO ready**: sitemap, robots.txt and tags are automatically generated for the website
20
+
9
21
  # Installation
10
22
 
11
23
  Add this line to your Jekyll site's `Gemfile`:
@@ -51,7 +63,7 @@ Your contact information can be used in contact forms, the footer or anywhere el
51
63
 
52
64
  ## Publication
53
65
 
54
- ### On Github Pages
66
+ ### On Github Pages
55
67
 
56
68
  In your own website's repository, edit the `_config.yml` file:
57
69
 
@@ -84,7 +96,7 @@ And finally push to github
84
96
 
85
97
  $ git push --u origin gh-pages
86
98
 
87
- ### On any server
99
+ ### On any server
88
100
 
89
101
  In your own website's directory, edit the `_config.yml` file:
90
102
 
@@ -113,7 +125,7 @@ To test the theme, run `bundle exec jekyll serve` and open your browser at `http
113
125
  When the theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git are be bundled.
114
126
  To add a custom directory to the theme-gem, please edit the regexp in `jekyll-theme-parallelism.gemspec` accordingly.
115
127
 
116
- # Credits
128
+ # Credits
117
129
 
118
130
  Original README from HTML5 UP:
119
131
 
@@ -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 %}
data/_includes/head.html CHANGED
@@ -1,10 +1,16 @@
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
- <title>{{ site.title }} - {{ site.subtitle }}</title>
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/styles.css' | absolute_url }}" />
6
9
  {% if site.favicon_url %}
7
10
  <link rel="icon" href="{{ site.favicon_url | absolute_url }}" />
8
11
  {% endif %}
12
+ {% for page in pages %}
13
+ <link rel="alternate" hreflang="{{ page.lang }}" href="{{ page.url }}" />
14
+ {% endfor %}
9
15
  <noscript><link rel="stylesheet" href="{{ 'assets/css/noscript.css' | absolute_url }}" /></noscript>
10
16
  </head>
@@ -0,0 +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
+
4
+ <div id="language-selector">
5
+ <ul class="language">
6
+ {% for page in pages %}
7
+ {% if page.lang != "x-default" %}
8
+ <li>
9
+ <a href="{{ page.url | absolute_url }}" class="{{ page.lang }}">{{ page.lang }}</a>
10
+ </li>
11
+ {% endif %}
12
+ {% endfor %}
13
+ </ul>
14
+ </div>
@@ -1,17 +1,27 @@
1
+ ---
2
+ ---
3
+ {% assign lang = page.lang | default: site.lang | default: 'en' %}
4
+ {% assign menu = site.data.translations.menu[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
+
1
9
  <!DOCTYPE HTML>
2
10
  <!--
3
11
  Parallelism by HTML5 UP
4
12
  html5up.net | @ajlkn
5
13
  Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
6
14
  -->
7
- <html>
15
+ <html lang="{{ lang }}">
8
16
 
9
- {% include head.html %}
17
+ {% include head.html title=title subtitle=subtitle %}
10
18
 
11
19
  <body class="is-preload">
12
20
 
13
21
  <div id="wrapper">
14
22
 
23
+ {% include language.html %}
24
+
15
25
  {{ content }}
16
26
 
17
27
  {% include footer.html %}
data/_layouts/page.html CHANGED
@@ -1,7 +1,4 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
-
5
- {% include header.html %}
6
-
7
4
  {{ content }}
data/_layouts/post.html CHANGED
@@ -1,5 +1,4 @@
1
1
  ---
2
2
  layout: page
3
3
  ---
4
-
5
4
  {{ content }}
@@ -0,0 +1,10 @@
1
+ ---
2
+ lang: x-default
3
+ ---
4
+ <!doctype html>
5
+ <html>
6
+ <head>
7
+ <meta http-equiv="refresh" content="0; url={{ page.forward_url | absolute_url }}">
8
+ <link rel="canonical" href="{{ page.forward_url | absolute_url }}" />
9
+ </head>
10
+ </html>
@@ -2,15 +2,18 @@
2
2
  layout: sitemap
3
3
  permalink: /sitemap.xml
4
4
  ---
5
- {% assign posts=site.posts %}
6
- {% assign pages=site.html_pages | concat: posts %}
5
+ {% assign posts=site.posts | sort: 'lang' %}
6
+ {% assign pages=site.html_pages | sort: 'lang' | concat: posts %}
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
9
9
  {% for page in pages %}
10
+ {% assign versions=pages | where:"lang-ref", page.lang-ref %}
10
11
  {% unless page.url contains "404" %}
11
12
  <url>
12
13
  <loc>{{ page.url | absolute_url}}</loc>
13
- <xhtml:link rel="alternate" hreflang="en" href="{{ page.url | absolute_url }}" />
14
+ {% for version in versions %}
15
+ <xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ version.url | absolute_url }}" />
16
+ {% endfor %}
14
17
  <changefreq>weekly</changefreq>
15
18
  </url>
16
19
  {% endunless %}
@@ -0,0 +1,35 @@
1
+ /* Header */
2
+
3
+ .language {
4
+ position: fixed;
5
+ right: 0;
6
+ text-align: right;
7
+ z-index: 10002;
8
+
9
+ li {
10
+ display: inline-block;
11
+ margin: 0;
12
+ margin-right: 1em;
13
+ padding: 0 1em 0 0;
14
+
15
+ &:last-child {
16
+ padding-right: 0;
17
+ }
18
+
19
+ .icon {
20
+ color: inherit;
21
+
22
+ &:before {
23
+ font-size: 1.25em;
24
+ }
25
+ }
26
+ }
27
+
28
+ a {
29
+ border: none;
30
+ }
31
+
32
+ .en:lang(en), .fr:lang(fr), .de:lang(de){
33
+ font-weight: bold;
34
+ }
35
+ }
data/_sass/main.scss CHANGED
@@ -26,6 +26,10 @@
26
26
 
27
27
  @import 'components/cookieconsent';
28
28
 
29
+ // Layout
30
+
31
+ @import 'layout/header';
32
+
29
33
  // Reset.
30
34
  // Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain)
31
35
 
@@ -110,7 +114,7 @@
110
114
  }
111
115
 
112
116
  body {
113
- @include vendor('background-image', ('url("images/overlay.png")', 'linear-gradient(top, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.65))', 'url("../../assets/images/bg.jpg")'));
117
+ @include vendor('background-image', ('url("images/overlay.png")', 'linear-gradient(top, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.65))', 'url("../images/bg.jpg")'));
114
118
  background-position: top left, bottom left, auto;
115
119
  background-size: auto, 100% 100%, cover;
116
120
  background-attachment: fixed;
@@ -595,7 +599,7 @@
595
599
  top: 50%;
596
600
  left: 50%;
597
601
  margin: -24px 0 0 -24px;
598
- background: url('assets/images/loader.gif');
602
+ background: url('./images/loader.gif');
599
603
  opacity: 0.25;
600
604
  }
601
605
 
@@ -677,4 +681,4 @@
677
681
  display: none !important;
678
682
  }
679
683
  }
680
- }
684
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-parallelism
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Mougeolle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2019-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -63,16 +63,19 @@ files:
63
63
  - README.md
64
64
  - _includes/banner.html
65
65
  - _includes/cta.html
66
+ - _includes/date.html
66
67
  - _includes/footer.html
67
68
  - _includes/head.html
68
- - _includes/header.html
69
+ - _includes/language.html
69
70
  - _includes/scripts.html
70
71
  - _layouts/default.html
71
72
  - _layouts/home.html
72
73
  - _layouts/page.html
73
74
  - _layouts/post.html
75
+ - _layouts/redirect.html
74
76
  - _layouts/sitemap.html
75
77
  - _sass/components/_cookieconsent.scss
78
+ - _sass/layout/_header.scss
76
79
  - _sass/libs/_breakpoints.scss
77
80
  - _sass/libs/_functions.scss
78
81
  - _sass/libs/_mixins.scss
@@ -1,33 +0,0 @@
1
- <!-- Header -->
2
- <header id="header" {% if include.class %} class="{{ include.class }}" {% endif %}>
3
- <h1 id="logo">
4
- <a href="index.html">
5
- {% if site.logo_url %}
6
- <img src="{{ site.logo_url | absolute_url }}" width="32" height="32">
7
- &nbsp;
8
- {% endif %}
9
- {{ site.title }} <span>{% if site.subtitle.size < 16 %} {{ site.subtitle }} {% endif %}</span>
10
- </a>
11
- </h1>
12
- <nav id="nav">
13
- <ul>
14
- {% for item in site.data.navigation.menu %}
15
- {% if item.menu[0] %}
16
- <li class="submenu {% if item.url == page.url %} current {% endif %}">
17
- <a href="{{ item.url | absolute_url }}">{{ item.title }}</a>
18
- <ul>
19
- {% for subitem in item.menu %}
20
- <li {% if subitem.url == page.url %} class="current" {% endif %}>
21
- <a href="{{ subitem.url | absolute_url }}">{{ subitem.title }}</a>
22
- </li>
23
- {% endfor %}
24
- </ul>
25
- {% else %}
26
- <li {% if item.url == page.url %} class="current" {% endif %}>
27
- <a href="{{ item.url | absolute_url }}">{{ item.title }}</a>
28
- </li>
29
- {% endif %}
30
- {% endfor %}
31
- </ul>
32
- </nav>
33
- </header>