jekyll-theme-drop 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: d7b6273dd4c3e6ce2d8c6273b17947abad12d6ec12d2b04141e2c202a33f75bf
4
- data.tar.gz: b7af230526858280910d162d04a98286eee93e53ad267f61d70b7ddfbbcb9f32
3
+ metadata.gz: f1b23788644b117d610e77fc9e267bea3a6190094c7b69cacbbcb474083afc3f
4
+ data.tar.gz: d588f458b6005027a84ce5a2ae0b740302abc3cfb945fb9095a5e46c70a4c882
5
5
  SHA512:
6
- metadata.gz: f9b36fc33e27304370189b0cdd0a3158a97d4e7be8a5539bac1e9ae022cffc7a8cc2d91c44e2c874046ac4da7e31000b97a8986a9364e8bfd1f5a502c8a18004
7
- data.tar.gz: 312d8d33ff72084f04a75b82081d92c91a47026757cbe49dd10783d1522bfc94bf845b4b62762dc10b7576e931e983dea38e9052c732a70f5bb57d25fa2c5282
6
+ metadata.gz: 18c776b974b8589f41b9e2e51a3f0efd2dbd930afd1a3f677c96f347b70cad7015d2d1f7b772c4690105fb1ab639b801d46dfd4bca03678440f750ef2501f9ac
7
+ data.tar.gz: e3b8f378f35536cf8ca7519e96d054e62489658e4555c0e6899f0701038917b425687be6937a3d645f12365b402ac393be13feaeb94dee85a6b7805706f7f250
data/README.md CHANGED
@@ -6,6 +6,18 @@ You can preview the theme [here](https://moodule.github.io/jekyll-theme-drop)
6
6
 
7
7
  ![Drop Theme](assets/images/screenshot.jpg "Drop 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
 
@@ -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
- </head>
16
+ </head>
@@ -1,5 +1,6 @@
1
1
  <!-- Header -->
2
2
  <section id="header">
3
+ {% include language.html %}
3
4
  <header>
4
5
  <a href="{{ site.baseurl }}/"><h1>{{ page.title }}</h1></a>
5
6
  <p>{{ page.subtitle }}</p>
@@ -0,0 +1,12 @@
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
+ <ul class="language">
5
+ {% for page in pages %}
6
+ {% if page.lang != "x-default" %}
7
+ <li>
8
+ <a href="{{ page.url | absolute_url }}" class="{{ page.lang }}">{{ page.lang }}</a>
9
+ </li>
10
+ {% endif%}
11
+ {% endfor %}
12
+ </ul>
@@ -1,7 +1,7 @@
1
1
  <!-- Navbar -->
2
2
  <nav id="nav">
3
3
  <ul>
4
- {% for item in site.data.navigation.menu %}
4
+ {% for item in include.menu %}
5
5
  {% if item.menu[0] %}
6
6
  <li class="submenu {% if item.url == page.url %} current {% endif %}">
7
7
  <a href="{{ item.url | absolute_url }}">{{ item.title }}</a>
@@ -19,4 +19,4 @@
19
19
  {% endif %}
20
20
  {% endfor %}
21
21
  </ul>
22
- </nav>
22
+ </nav>
@@ -1,12 +1,20 @@
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
- Drop by MOODULE
11
+ Drop theme by MOODULE
4
12
  https://github.com/moodule
5
13
  Free for personal and commercial use under the CCA 4.0 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
 
@@ -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 %}
@@ -2,12 +2,13 @@
2
2
 
3
3
  #banner {
4
4
  position: relative;
5
+ margin: 0;
6
+ padding: 5em 0 5em 0;
7
+ height: 100vh;
5
8
  color: _palette(fg);
6
9
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.25);
7
10
  text-align: center;
8
11
  background: _palette(bg) url('images/banner.svg') bottom center no-repeat;
9
- padding: 5em 0 5em 0;
10
- margin: 0;
11
12
  background-size: 125% auto;
12
13
 
13
14
  .button {
@@ -3,11 +3,12 @@
3
3
  #header {
4
4
  @include vendor('transition', 'opacity 2s ease-in-out');
5
5
  position: relative;
6
+ margin: 0;
7
+ padding: 2em 0 14em 0;
8
+ height: 100vh;
6
9
  color: _palette(fg);
7
10
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.25);
8
11
  text-align: center;
9
- margin: 0;
10
- padding: 2em 0 14em 0;
11
12
  cursor: default;
12
13
 
13
14
  header {
@@ -74,6 +75,41 @@
74
75
  }
75
76
  }
76
77
 
78
+ .language {
79
+ position: absolute;
80
+ right: 0;
81
+ margin: 0;
82
+ margin-right: 1em;
83
+ padding: 0;
84
+ text-align: right;
85
+
86
+ li {
87
+ display: inline-block;
88
+ margin: 0;
89
+ padding: 0 1em 0 0;
90
+
91
+ &:last-child {
92
+ padding-right: 0;
93
+ }
94
+
95
+ .icon {
96
+ color: inherit;
97
+
98
+ &:before {
99
+ font-size: 1.25em;
100
+ }
101
+ }
102
+ }
103
+
104
+ a {
105
+ border: none;
106
+ }
107
+
108
+ .en:lang(en), .fr:lang(fr), .de:lang(de){
109
+ font-weight: bold;
110
+ }
111
+ }
112
+
77
113
  body.is-preload & {
78
114
  opacity: 0;
79
115
 
data/sitemap.md ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: sitemap
3
+ permalink: /sitemap.xml
4
+ ---
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-drop
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,9 +63,11 @@ files:
63
63
  - README.md
64
64
  - _includes/banner.html
65
65
  - _includes/bouncing.svg
66
+ - _includes/date.html
66
67
  - _includes/footer.html
67
68
  - _includes/head.html
68
69
  - _includes/header.html
70
+ - _includes/language.html
69
71
  - _includes/navigation.html
70
72
  - _includes/scripts.html
71
73
  - _layouts/default.html
@@ -152,6 +154,7 @@ files:
152
154
  - assets/js/jquery.scrolly.min.js
153
155
  - assets/js/main.js
154
156
  - assets/js/util.js
157
+ - sitemap.md
155
158
  homepage: https://github.com/moodule/jekyll-theme-drop
156
159
  licenses:
157
160
  - CC-BY-4.0