jekyll-theme-twenty 0.1.6 → 0.1.7
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 +4 -4
- data/README.md +4 -0
- data/_includes/date.html +24 -0
- data/_includes/footer.html +4 -4
- data/_includes/head.html +3 -2
- data/_includes/header.html +6 -25
- data/_includes/language.html +12 -0
- data/_includes/navigation.html +21 -0
- data/_layouts/default.html +12 -2
- data/_layouts/home.html +0 -2
- data/_layouts/page.html +0 -2
- data/_layouts/redirect.html +10 -0
- data/_layouts/sitemap.html +11 -8
- data/_sass/layout/_header.scss +32 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 773c4dceb97ac90729e3c293e5e559c5810457de7431a85072fe045452ede329
|
|
4
|
+
data.tar.gz: cb2c93363c33587a5a9a19f7a237de223ed5acf48e7d5a6fd8f09cae1b99e9a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fcb05972804d64ba1874115cee5323a030c96fe2f53d30dde028fa9d1754fcbe4c8391ba2600bad2a974c4806d82157e102c64c67f640ff10f302df23a86ede
|
|
7
|
+
data.tar.gz: 36265f6e125aa75dcaa46e5000725552bad1e1e761de57fa4a928ee0962834dc2d89978c73d2df36c0469cc0beb461302c09ccb33c52f44fdd2f03a5acf7ddf7
|
data/README.md
CHANGED
|
@@ -14,6 +14,10 @@ You can preview the theme [here](https://moodule.github.io/jekyll-theme-twenty).
|
|
|
14
14
|
|
|
15
15
|
> **Customizable**: theme colors, menu, social items can be changed from a central config file
|
|
16
16
|
|
|
17
|
+
> **Many page templates**: contact forms, navigation menus, and others can be easily inserted thanks to custom Jekyll includes
|
|
18
|
+
|
|
19
|
+
> **Vector images**: the theme images are vectorized, render smoothly on any display and can be dynamically styled
|
|
20
|
+
|
|
17
21
|
> **GDPR ready**: bundled with a cookie consent plugin and a boilerplate privacy policy compliant with GDPR
|
|
18
22
|
|
|
19
23
|
> **SEO ready**: sitemap, robots.txt and tags are automatically generated for the website
|
data/_includes/date.html
ADDED
|
@@ -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/footer.html
CHANGED
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
<li>© {{ site.title }}. All rights reserved.</li>
|
|
39
39
|
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
|
|
40
40
|
<li>Jekyll integration: <a href="http://github.com/moodule" target="_blank">Moodule</a></li>
|
|
41
|
-
{% if site.
|
|
42
|
-
<li><a href="{{ site.
|
|
41
|
+
{% if site.legal_terms.url %}
|
|
42
|
+
<li><a href="{{ site.legal_terms.url | absolute_url }}" target="_blank">Legal Terms</a></li>
|
|
43
43
|
{% endif %}
|
|
44
|
-
{% if site.
|
|
45
|
-
<li><a href="{{ site.
|
|
44
|
+
{% if site.privacy_policy.url %}
|
|
45
|
+
<li><a href="{{ site.privacy_policy.url | absolute_url }}" target="_blank">Privacy Policy</a></li>
|
|
46
46
|
{% endif %}
|
|
47
47
|
</ul>
|
|
48
48
|
|
data/_includes/head.html
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<head>
|
|
2
|
-
<title>{{
|
|
2
|
+
<title>{{ include.title }} - {{ include.subtitle }}</title>
|
|
3
3
|
<meta charset="utf-8" />
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
5
5
|
<link rel="stylesheet" href="{{ 'assets/css/styles.css' | absolute_url }}" />
|
|
6
6
|
<noscript><link rel="stylesheet" href="{{ 'assets/css/noscript.css' | absolute_url }}" /></noscript>
|
|
7
|
-
|
|
7
|
+
{% if site.favicon %}<link rel="icon" href="{{ site.favicon | absolute_url }}" />{% endif %}
|
|
8
|
+
</head>
|
data/_includes/header.html
CHANGED
|
@@ -1,33 +1,14 @@
|
|
|
1
1
|
<!-- Header -->
|
|
2
|
-
<header id="header" {% if
|
|
2
|
+
<header id="header" {% if layout.name=="home" %}class="alt"{% endif %}>
|
|
3
3
|
<h1 id="logo">
|
|
4
4
|
<a href="index.html">
|
|
5
|
-
{
|
|
6
|
-
<img src="{{ site.
|
|
5
|
+
{%- if site.logo %}
|
|
6
|
+
<img src="{{ site.logo | absolute_url }}" width="32" height="32">
|
|
7
7
|
|
|
8
|
-
{
|
|
8
|
+
{%- endif %}
|
|
9
9
|
{{ site.title }} <span>{% if site.subtitle.size < 16 %} {{ site.subtitle }} {% endif %}</span>
|
|
10
10
|
</a>
|
|
11
11
|
</h1>
|
|
12
|
-
|
|
13
|
-
|
|
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>
|
|
12
|
+
{% include navigation.html menu=include.menu %}
|
|
13
|
+
{% include language.html %}
|
|
33
14
|
</header>
|
|
@@ -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>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<nav id="nav">
|
|
2
|
+
<ul>
|
|
3
|
+
{% for item in include.menu %}
|
|
4
|
+
{% if item.menu[0] %}
|
|
5
|
+
<li class="submenu {% if item.url == page.url %} current {% endif %}">
|
|
6
|
+
<a href="{{ item.url | absolute_url }}">{{ item.title }}</a>
|
|
7
|
+
<ul>
|
|
8
|
+
{% for subitem in item.menu %}
|
|
9
|
+
<li {% if subitem.url == page.url %} class="current" {% endif %}>
|
|
10
|
+
<a href="{{ subitem.url | absolute_url }}">{{ subitem.title }}</a>
|
|
11
|
+
</li>
|
|
12
|
+
{% endfor %}
|
|
13
|
+
</ul>
|
|
14
|
+
{% else %}
|
|
15
|
+
<li {% if item.url == page.url %} class="current" {% endif %}>
|
|
16
|
+
<a href="{{ item.url | absolute_url }}">{{ item.title }}</a>
|
|
17
|
+
</li>
|
|
18
|
+
{% endif %}
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</ul>
|
|
21
|
+
</nav>
|
data/_layouts/default.html
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
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
|
Twenty 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="index is-preload">
|
|
12
20
|
<div id="page-wrapper">
|
|
13
21
|
|
|
22
|
+
{% include header.html menu=menu %}
|
|
23
|
+
|
|
14
24
|
{{ content }}
|
|
15
25
|
|
|
16
26
|
{% include cta.html %}
|
data/_layouts/home.html
CHANGED
data/_layouts/page.html
CHANGED
data/_layouts/sitemap.html
CHANGED
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
layout: sitemap
|
|
3
3
|
permalink: /sitemap.xml
|
|
4
4
|
---
|
|
5
|
-
{
|
|
6
|
-
{
|
|
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
|
-
{
|
|
10
|
-
{
|
|
9
|
+
{%- for page in pages %}
|
|
10
|
+
{%- assign versions=pages | where:"lang-ref", page.lang-ref %}
|
|
11
|
+
{%- unless page.url contains "404" %}
|
|
11
12
|
<url>
|
|
12
13
|
<loc>{{ page.url | absolute_url}}</loc>
|
|
13
|
-
|
|
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
|
-
{
|
|
17
|
-
{
|
|
18
|
-
</urlset>
|
|
19
|
+
{%- endunless %}
|
|
20
|
+
{%- endfor %}
|
|
21
|
+
</urlset>
|
data/_sass/layout/_header.scss
CHANGED
|
@@ -94,6 +94,38 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
.language {
|
|
98
|
+
position: absolute;
|
|
99
|
+
right: 0;
|
|
100
|
+
text-align: right;
|
|
101
|
+
|
|
102
|
+
li {
|
|
103
|
+
display: inline-block;
|
|
104
|
+
margin: 0;
|
|
105
|
+
padding: 0 1em 0 0;
|
|
106
|
+
|
|
107
|
+
&:last-child {
|
|
108
|
+
padding-right: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.icon {
|
|
112
|
+
color: inherit;
|
|
113
|
+
|
|
114
|
+
&:before {
|
|
115
|
+
font-size: 1.25em;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
a {
|
|
121
|
+
border: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.en:lang(en), .fr:lang(fr), .de:lang(de){
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
97
129
|
& * {
|
|
98
130
|
vertical-align: middle;
|
|
99
131
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-twenty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
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-
|
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -63,14 +63,18 @@ 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
69
|
- _includes/header.html
|
|
70
|
+
- _includes/language.html
|
|
71
|
+
- _includes/navigation.html
|
|
69
72
|
- _includes/scripts.html
|
|
70
73
|
- _layouts/default.html
|
|
71
74
|
- _layouts/home.html
|
|
72
75
|
- _layouts/page.html
|
|
73
76
|
- _layouts/post.html
|
|
77
|
+
- _layouts/redirect.html
|
|
74
78
|
- _layouts/sitemap.html
|
|
75
79
|
- _sass/base/_page.scss
|
|
76
80
|
- _sass/base/_reset.scss
|