jekyll-multiple-languages-plugin 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ name: Flex
2
+ markdown: redcarpet
3
+ pygments: true
4
+
5
+ baseurl: ""
6
+
7
+ languages: ["it", "en", "es"]
@@ -0,0 +1,9 @@
1
+ global:
2
+ italian: Italiano
3
+ english: English
4
+ spanish: Español
5
+ tagline: English
6
+ pages:
7
+ example: example
8
+ # home: Home
9
+ # work: Work
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: post
3
+ title: Example post
4
+ cover: cover.jpg
5
+ date: 2013-12-09 12:00:00
6
+ categories: en posts
7
+ ---
8
+
9
+ ## Introducing Flex, a Jekyll theme
10
+
11
+ Flex is a minimalist, responsive theme based on the website, [The Development](http://thedevelopment.co).
12
+
13
+ ## Open Sourced on GitHub
14
+
15
+ Flex is open sourced on GitHub and is licensed under the [MIT License](http://opensource.org/licenses/MIT). Feel free to contribute to it anytime!
@@ -0,0 +1,8 @@
1
+ global:
2
+ italian: Italiano
3
+ english: English
4
+ spanish: Español
5
+ tagline: Español
6
+ #pages:
7
+ # home: Home
8
+ # work: Work
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: post
3
+ title: Ejemplo de post
4
+ cover: cover.jpg
5
+ date: 2013-12-09 12:00:00
6
+ categories: es posts
7
+ ---
8
+
9
+ ## Presentación de Flex, un tema Jekyll
10
+
11
+ Flex es un tema minimalista y rápido basado en el sitio web [The Development](http://thedevelopment.co).
12
+
13
+ ## Codigo abierto en GitHub
14
+
15
+ Flex es código abierto y puedes encontrarlo en GitHub. Está disponible bajo la licencia [MIT License](http://opensource.org/licenses/MIT). Puedes contribuir a Flex en cualquier momento!
@@ -0,0 +1,8 @@
1
+ global:
2
+ italian: Italiano
3
+ english: English
4
+ spanish: Español
5
+ tagline: Italiano
6
+ #pages:
7
+ example: esempio
8
+ # work: Work
@@ -0,0 +1,16 @@
1
+ ---
2
+ layout: post
3
+ title: Esempio
4
+ cover: cover.jpg
5
+ date: 2013-12-09 12:00:00
6
+ categories: posts
7
+ ---
8
+
9
+ ## Introduzione a Flex, un tema per Jekyll
10
+
11
+ Flex è un tema minimalista e veloce, basato sul sito web [The Development](http://thedevelopment.co).
12
+
13
+ ## Disponibile come Open Source su GitHub
14
+
15
+ Flex è disponibile come Open Source ed è rilasciato sotto la licenza [MIT License](http://opensource.org/licenses/MIT). Puoi contribuire al suo sviluppo!
16
+
@@ -0,0 +1,40 @@
1
+ <div class="content" id="home">
2
+ <div id="sidebar-button">
3
+ <img src="/images/sidebar-button.png">
4
+ </div>
5
+ <div id="post-info">
6
+ <div id="cover-photo-container">
7
+ <img id="cover-photo" src="/images/{{ page.cover }}">
8
+ </div>
9
+ <div id="info-container">
10
+ <h1 id="title">{{ page.title }}</h1>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="post">
15
+ {% if site.lang == "it" %}
16
+ {% capture link1 %}{{ site.baseurl_root }}/en{{ page.url}}{% endcapture %}
17
+ {% capture link3 %}{{ site.baseurl_root }}/es{{ page.url}}{% endcapture %}
18
+ <div align="right">
19
+ <a href="{{ link1 }}" >{% t global.english %}</a><span class="separator"> &bull; </span><a href="{{ link3 }}" >{% t global.spanish %}</a>
20
+ </div>
21
+ {% else if site.lang == "en" %}
22
+ {% capture link2 %}{{ site.baseurl_root }}{{ page.url }}{% endcapture %}
23
+ {% capture link3 %}{{ site.baseurl_root }}/es{{ page.url}}{% endcapture %}
24
+ <div align="right">
25
+ <a href="{{ link3 }}" >{% t global.spanish %}</a><span class="separator"> &bull; </span><a href="{{ link2 }}" >{% t global.italian %}</a>
26
+ </div>
27
+ {% else if site.lang == "es" %}
28
+ {% capture link2 %}{{ site.baseurl_root }}{{ page.url }}{% endcapture %}
29
+ {% capture link1 %}{{ site.baseurl_root }}/en{{ page.url}}{% endcapture %}
30
+ <div align="right">
31
+ <a href="{{ link1 }}" >{% t global.english %}</a><span class="separator"> &bull; </span><a href="{{ link2 }}" >{% t global.italian %}</a>
32
+ </div>
33
+
34
+ {% endif %}
35
+
36
+
37
+
38
+ {{ content }}
39
+ </div>
40
+ </div>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
+ <title>/dav/random - {{ page.title }}</title>
7
+ <meta name="viewport" content="width=device-width">
8
+
9
+ <!-- syntax highlighting CSS -->
10
+ <link rel="stylesheet" href="/css/syntax.css">
11
+
12
+ <!-- Custom CSS -->
13
+ <link rel="stylesheet" href="/css/main.css">
14
+
15
+ <!-- Responsive CSS -->
16
+ <link rel="stylesheet" href="/css/responsive.css">
17
+
18
+ <!-- Google Fonts -->
19
+ <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700' rel='stylesheet' type='text/css'>
20
+ <link href='http://fonts.googleapis.com/css?family=Raleway:300,400,700' rel='stylesheet' type='text/css'>
21
+ </head>
22
+ <body>
23
+ <div class="site">
24
+ <div class="sidebar" id="sidebar">
25
+ <div class="header">
26
+ <a class="link-it" href="{{ site.baseurl_root }}/">it</a>
27
+ <a class="link-en" href="{{ site.baseurl_root }}/en">en</a>
28
+ <a class="link-es" href="{{ site.baseurl_root }}/es">es</a>
29
+
30
+ <h1 class="title"><a href="/"><img id="logo" src="/images/logo.png"></a></h1>
31
+ <span class="tagline">{% t global.tagline %}</span>
32
+ </div>
33
+ <div class="posts">
34
+ <ul class="posts-list">
35
+ {% for post in site.posts %}
36
+ <li class="post-link">
37
+ <a class="post-title" href="{{ site.baseurl }}{{ post.url }}">
38
+ {{ post.title }}
39
+ </a>
40
+ </li>
41
+ {% endfor %}
42
+ </ul>
43
+ </div>
44
+ <div class="footer">
45
+ <span id="footer-links">
46
+ <a href="" class="footer-link">About</a> <span class="separator">&bull;</span>
47
+ <a href="" class="footer-link">Twitter</a> <span class="separator">&bull;</span>
48
+ <a href="" class="footer-link">GitHub</a>
49
+ </span>
50
+ </div>
51
+ </div>
52
+
53
+ {{ content }}
54
+
55
+ </div>
56
+ <script src="/scripts/responsive.js" type="text/javascript"></script>
57
+ </body>
58
+ </html>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% include post.html %}
5
+
6
+
7
+
8
+
@@ -0,0 +1 @@
1
+ require 'jekyll/multiple/languages/plugin'
@@ -0,0 +1,285 @@
1
+ /*****************************************************************************/
2
+ /*
3
+ /* Common
4
+ /*
5
+ /*****************************************************************************/
6
+
7
+ * {
8
+ margin: 0;
9
+ padding: 0;
10
+ }
11
+
12
+ html, body {
13
+ height: 100%;
14
+ width: 100%;
15
+ -webkit-font-smoothing: antialiased;
16
+ }
17
+
18
+ body {
19
+ color: #333;
20
+ background-color: #fafbfc;
21
+ font-family: 'Raleway', Arial, sans-serif;
22
+ font-weight: 400;
23
+ font-size: 0.85em;
24
+ overflow: hidden;
25
+ }
26
+
27
+ a {
28
+ color: #8085C1;
29
+ text-decoration: none;
30
+ border: none;
31
+ }
32
+
33
+ a img {
34
+ outline: none;
35
+ }
36
+
37
+ a:hover {
38
+ color: #555;
39
+ border: none;
40
+ }
41
+
42
+ .separator {
43
+ color: #555;
44
+ }
45
+
46
+ /*****************************************************************************/
47
+ /*
48
+ /* Home
49
+ /*
50
+ /*****************************************************************************/
51
+ #logo {
52
+ max-width: 128px;
53
+ }
54
+
55
+ .posts a {
56
+ color: #444;
57
+ }
58
+
59
+ .posts a:hover {
60
+ color: #777;
61
+ }
62
+
63
+ .posts-list {
64
+ list-style-type: none;
65
+ }
66
+
67
+ .posts-list li {
68
+ text-align: center;
69
+ line-height: 1.75em;
70
+ }
71
+
72
+ /*****************************************************************************/
73
+ /*
74
+ /* Site
75
+ /*
76
+ /*****************************************************************************/
77
+
78
+ .site {
79
+ height: 100%;
80
+ width: 100%;
81
+ line-height: 1.25em;
82
+ }
83
+
84
+ .title {
85
+ display: inline-block;
86
+ text-align: center;
87
+ }
88
+
89
+ .tagline {
90
+ width: 100%;
91
+ color: #777;
92
+ text-align: center;
93
+ margin-top: 0.5em;
94
+ display: block;
95
+
96
+ }
97
+
98
+ .posts {
99
+ border-top: 1px solid #e7e7e7;
100
+ margin-top: 1em;
101
+ padding-top: 1.5em;
102
+ padding-bottom: 1.25em;
103
+ }
104
+
105
+ .footer {
106
+ font-size: 0.95em;
107
+ border-top: 1px solid #e7e7e7;
108
+ padding-top: 1.25em;
109
+ padding-bottom: 1.5em;
110
+ overflow: hidden;
111
+ float: center;
112
+ text-align: center;
113
+ }
114
+
115
+ /*****************************************************************************/
116
+ /*
117
+ /* Posts
118
+ /*
119
+ /*****************************************************************************/
120
+
121
+ #date {
122
+ padding-top: 0.5em;
123
+ margin-bottom: 2em;
124
+ }
125
+
126
+ #cover-photo-container,
127
+ #info-container {
128
+ display: block;
129
+ }
130
+
131
+ #info-container {
132
+ margin-top: 3em;
133
+ }
134
+
135
+ #title {
136
+ color: #494949;
137
+ margin-bottom: 0.35em;
138
+ font-size: 3.5em;
139
+ text-transform: uppercase;
140
+ }
141
+
142
+ .post {
143
+ line-height: 24px;
144
+ max-width: 725px;
145
+ clear: both;
146
+ }
147
+
148
+ .post h2 {
149
+ margin-top: 1.25em;
150
+ margin-left: -0.5em;
151
+ margin-bottom: 1.25em;
152
+ }
153
+
154
+ .post a,
155
+ #about a {
156
+ border-bottom: 1px dashed #8085C1;
157
+ }
158
+
159
+ .post a:hover {
160
+ border: none;
161
+ }
162
+
163
+ /* standard */
164
+ .post pre {
165
+ border: 1px solid #ddd;
166
+ background-color: #eef;
167
+ padding: 0 .4em;
168
+ }
169
+
170
+ .post p {
171
+ font-family: 'Source Sans Pro', Arial, sans-serif;
172
+ font-size: 1.1em;
173
+ margin-bottom: 1.45em;
174
+ text-align: justify;
175
+ }
176
+
177
+ .post ul, .post ol {
178
+ margin-left: 2.35em;
179
+ margin-bottom: 1.25em;
180
+ }
181
+
182
+ .post code {
183
+ border: 1px solid #ddd;
184
+ background-color: #eef;
185
+ padding: 0 .2em;
186
+ }
187
+
188
+ .post pre code {
189
+ border: none;
190
+ }
191
+
192
+ /* terminal */
193
+ .post pre.terminal {
194
+ border: 1px solid #000;
195
+ background-color: #333;
196
+ color: #FFF;
197
+ }
198
+
199
+ .post pre.terminal code {
200
+ background-color: #333;
201
+ }
202
+
203
+ /*****************************************************************************/
204
+ /*
205
+ /* Sidebar and Content
206
+ /*
207
+ /*****************************************************************************/
208
+
209
+ .sidebar,
210
+ .content {
211
+ vertical-align: top;
212
+ height: 100%;
213
+ -webkit-overflow-scrolling: touch;
214
+ overflow-y: auto;
215
+ overflow-x: hidden;
216
+ }
217
+
218
+ .sidebar {
219
+ float: left;
220
+ width: 14%;
221
+ padding-left: 11em;
222
+ padding-right: 2.125em;
223
+ border-right: 1px solid #e7e7e7;
224
+ }
225
+
226
+ .content {
227
+ padding-left: 2.125em;
228
+ }
229
+
230
+ .header {
231
+ text-align: center;
232
+ padding-top: 2.5em;
233
+ font-size: 1.1em;
234
+ }
235
+
236
+ .post-link {
237
+ margin-bottom: 0.75em;
238
+ }
239
+
240
+ .post-title {
241
+ font-weight: 600;
242
+ font-size: 1.4em;
243
+ text-transform: uppercase;
244
+ }
245
+
246
+ .post-date {
247
+ color: #8a8a8a;
248
+ font-family: Monaco, "Courier New", monospace;
249
+ font-weight: 600;
250
+ font-size: 0.65em;
251
+ display: block;
252
+ text-transform: lowercase;
253
+ }
254
+
255
+ #sidebar-button {
256
+ height: intrinsic;
257
+ cursor: pointer;
258
+ display: none;
259
+ padding: 15px 5px 0px 0px;
260
+ margin-bottom: 10px;
261
+ border-bottom: 1px solid #e7e7e7;
262
+ }
263
+
264
+ #sidebar-button:active,
265
+ #sidebar-button:hover {
266
+ opacity: 0.7;
267
+ }
268
+
269
+ /*****************************************************************************/
270
+ /*
271
+ /* Colophon
272
+ /*
273
+ /*****************************************************************************/
274
+
275
+ .colophon {
276
+ margin-top: 1.5em;
277
+ margin-bottom: 1.45em;
278
+ border-top: 1px dotted #e7e7e7;
279
+ }
280
+
281
+ .colophon p {
282
+ margin-top: 1.25em;
283
+ font-size: 0.95em;
284
+ color: #777;
285
+ }