academic 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generated by IcoMoon.io -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
5
+ <path d="M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 15c-0.984 0-1.92-0.203-2.769-0.57l3.643-4.098c0.081-0.092 0.126-0.21 0.126-0.332v-1.5c0-0.276-0.224-0.5-0.5-0.5-1.765 0-3.628-1.835-3.646-1.854-0.094-0.094-0.221-0.146-0.354-0.146h-2c-0.276 0-0.5 0.224-0.5 0.5v3c0 0.189 0.107 0.363 0.276 0.447l1.724 0.862v2.936c-1.813-1.265-3-3.366-3-5.745 0-1.074 0.242-2.091 0.674-3h1.826c0.133 0 0.26-0.053 0.354-0.146l2-2c0.094-0.094 0.146-0.221 0.146-0.354v-1.21c0.634-0.189 1.305-0.29 2-0.29 1.1 0 2.141 0.254 3.067 0.706-0.065 0.055-0.128 0.112-0.188 0.172-0.567 0.567-0.879 1.32-0.879 2.121s0.312 1.555 0.879 2.121c0.569 0.569 1.332 0.879 2.119 0.879 0.049 0 0.099-0.001 0.149-0.004 0.216 0.809 0.605 2.917-0.131 5.818-0.007 0.027-0.011 0.055-0.013 0.082-1.271 1.298-3.042 2.104-5.002 2.104z"></path>
6
+ </svg>
@@ -0,0 +1,19 @@
1
+ <li>
2
+
3
+ <h2>
4
+ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
5
+ </h2>
6
+ <span class="post-meta">
7
+ <span class="date">
8
+ {% include date.html date=post.date %}
9
+ </span>
10
+ </span>
11
+
12
+ {% if post.thumbnail %}
13
+ <div class="post-thumbnail-wrapper">
14
+ <a href="{{ post.url | relative_url }}"><img class="post-thumbnail" src="/assets/{{ post.thumbnail }}" alt="{{ post.title | escape }}"/></a>
15
+ </div>
16
+ {% endif %}
17
+
18
+ <p>{{ post.summary }}</p>
19
+ </li>
@@ -0,0 +1,69 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="about-col-wrapper">
6
+ <div class="about-col about-col-1">
7
+
8
+ {% if site.github_username %}
9
+ <img class="user-picture" src="https://github.com/{{ site.github_username }}.png" alt="{{ site.author }}">
10
+ {% endif %}
11
+
12
+ <ul class="contact-list">
13
+ {% if site.email %}
14
+ <li>
15
+ {% include icon-email.html username=site.email %}
16
+ </li>
17
+ {% endif %}
18
+
19
+ {% if site.curriculum.url %}
20
+ <li>
21
+ {% include icon-file.html curriculum=site.curriculum %}
22
+ </li>
23
+ {% endif %}
24
+ </ul>
25
+
26
+ <ul class="contact-list">
27
+ {% if site.author_website %}
28
+ <li>
29
+ {% include icon-website.html url=site.author_website %}
30
+ </li>
31
+ {% endif %}
32
+
33
+ {% if site.github_username %}
34
+ <li>
35
+ {% include icon-github.html username=site.github_username %}
36
+ </li>
37
+ {% endif %}
38
+
39
+ {% if site.twitter_username %}
40
+ <li>
41
+ {% include icon-twitter.html username=site.twitter_username %}
42
+ </li>
43
+ {% endif %}
44
+
45
+ {% if site.linkedin_username %}
46
+ <li>
47
+ {% include icon-linkedin.html username=site.linkedin_username %}
48
+ </li>
49
+ {% endif %}
50
+
51
+ </ul>
52
+
53
+ <ul class="contact-list">
54
+ {% if site.keybase_username %}
55
+ <li>
56
+ {% include icon-keybase.html username=site.keybase_username %}
57
+ </li>
58
+ {% endif %}
59
+
60
+ </ul>
61
+ </div>
62
+ <article class="about-col about-col-2" itemscope itemtype="http://schema.org/BlogPosting">
63
+
64
+ <div class="post-content" itemprop="articleBody">
65
+ {{ content }}
66
+ </div>
67
+
68
+ </article>
69
+ </div>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+ <div class="colored-block">
7
+ Bienvenue dans les archives de ce blog. Vous trouverez ci-dessous la liste complète des billets publiés, ordonnés du plus récent au plus ancien.
8
+ </div>
9
+
10
+ {{ content }}
11
+
12
+ <ul class="post-list">
13
+ {% for post in site.posts %}
14
+ {% include post-li.html %}
15
+ {% endfor %}
16
+ </ul>
17
+
18
+ {% include calltoaction.html message="Le blog vous intéresse ?" %}
19
+
20
+ </div>
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ {% if page.layout == "post" %}
11
+ <main class="post-content" aria-label="Content">
12
+ {% else %}
13
+ <main class="page-content" aria-label="Content">
14
+ {% endif %}
15
+ <div class="wrapper">
16
+ {{ content }}
17
+ </div>
18
+ </main>
19
+
20
+ {% include footer.html %}
21
+
22
+ </body>
23
+
24
+ </html>
@@ -0,0 +1,28 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% if site.pitch == null %}
6
+ {% assign div_class = "home" %}
7
+ {% else %}
8
+ {% assign div_class = "home pitch" %}
9
+ {% endif %}
10
+
11
+ <div class="{{ div_class }}">
12
+ {% if site.pitch == null %}
13
+ <p>{{ site.description | escape }}</p>
14
+ {% endif %}
15
+
16
+ {{ content }}
17
+
18
+ <ul class="post-list">
19
+ {% for post in site.posts limit:5 %}
20
+ {% include post-li.html %}
21
+ {% endfor %}
22
+ </ul>
23
+
24
+ {% include calltoaction.html message="Le blog vous intéresse ?" %}
25
+
26
+ <div class="archive">Voir <a href="/archive">tous les articles publiés</a>.</div>
27
+
28
+ </div>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,50 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ {% if page.thumbnail %}
7
+ <header class="post-header with-thumbnail">
8
+ {% else %}
9
+ <header class="post-header">
10
+ {% endif %}
11
+ {% if page.thumbnail %}
12
+ <img class="post-thumbnail" src="/assets/{{ page.thumbnail }}" alt="{{ page.title | escape }}"/>
13
+ {% endif %}
14
+ <div class="wrapper">
15
+ <h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
16
+ <p class="post-meta">
17
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
18
+ {% include date.html date=page.date %}
19
+ </time>
20
+ {% if page.author %} •
21
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
22
+ {% endif %}
23
+ </p>
24
+ <h3 class="post-summary">{{ page.summary }}</h3>
25
+ </div>
26
+ </header>
27
+
28
+ <div class="post-content" itemprop="articleBody">
29
+ {{ content }}
30
+ </div>
31
+
32
+ {% include calltoaction.html message="Cet article vous a plu ?" %}
33
+
34
+ {% if site.shortbio %}
35
+ <div class="post-author">
36
+ {% if site.github_username %}
37
+ <a href="{{ site.author_website }}">
38
+ <img class="user-picture" src="https://github.com/{{ site.github_username }}.png" alt="{{ site.author }}">
39
+ </a>
40
+ {% endif %}
41
+ <ul class="user-info">
42
+ <li class="user-name">
43
+ {{ site.author }}
44
+ </li>
45
+ <li class="user-shortbio">{{ site.shortbio }}</li>
46
+ </ul>
47
+ </div>
48
+ {% endif %}
49
+
50
+ </article>
@@ -0,0 +1,124 @@
1
+ // Define defaults for each variable.
2
+
3
+ $type-scale-large: (
4
+ h1: 2.941rem,
5
+ h2: 2.111rem,
6
+ h3: 1.663rem,
7
+ h4: 1.333rem,
8
+ p: 1.25rem,
9
+ small: 1.15rem,
10
+ vsmall: 1rem,
11
+ );
12
+
13
+ $type-scale-medium: (
14
+ h1: 2.441rem,
15
+ h2: 1.653em,
16
+ h3: 1.563rem,
17
+ h4: 1.333rem,
18
+ p: 1.25rem,
19
+ small: 1.15rem,
20
+ vsmall: 1rem,
21
+ );
22
+
23
+ $type-scale-small: (
24
+ h1: 2.148rem,
25
+ h2: 1.719rem,
26
+ h3: 1.375rem,
27
+ h4: 1.233rem,
28
+ p: 1.1rem,
29
+ small: 0.95rem,
30
+ vsmall: 0.85rem,
31
+ );
32
+
33
+ $type-line-large: (
34
+ h1: map-get($type-scale-large, h1)*1.1,
35
+ h2: map-get($type-scale-large, h2)*1.2,
36
+ h3: map-get($type-scale-large, h3)*1.2,
37
+ h4: map-get($type-scale-large, h4)*1.2,
38
+ p: map-get($type-scale-large, p)*1.6,
39
+ small: map-get($type-scale-large, small)*1.6,
40
+ vsmall: map-get($type-scale-large, vsmall)*1.6,
41
+ );
42
+
43
+ $type-line-medium: (
44
+ h1: map-get($type-scale-medium, h1)*1.1,
45
+ h2: map-get($type-scale-medium, h2)*0.8,
46
+ h3: map-get($type-scale-medium, h3)*1.3,
47
+ h4: map-get($type-scale-medium, h4)*1.3,
48
+ p: map-get($type-scale-medium, p)*1.6,
49
+ small: map-get($type-scale-medium, small)*1.6,
50
+ vsmall: map-get($type-scale-medium, vsmall)*1.6,
51
+ );
52
+
53
+ $type-line-small: (
54
+ h1: map-get($type-scale-small, h1)*1.1,
55
+ h2: map-get($type-scale-small, h2),
56
+ h3: map-get($type-scale-small, h3)*0.9,
57
+ h4: map-get($type-scale-small, h4)*0.9,
58
+ p: map-get($type-scale-small, p)*1.6,
59
+ small: map-get($type-scale-small, small)*1.6,
60
+ vsmall: map-get($type-scale-small, vsmall)*1.6,
61
+ );
62
+
63
+
64
+ $breakpoint-medium: 75em;
65
+ $breakpoint-small: 45em;
66
+
67
+ @mixin size($level) {
68
+ font-size: map-get($type-scale-large, $level);
69
+ line-height: map-get($type-line-large, $level);
70
+
71
+ @media (max-width: $breakpoint-medium) {
72
+ font-size: map-get($type-scale-medium, $level);
73
+ line-height: map-get($type-line-medium, $level);
74
+ }
75
+ @media (max-width: $breakpoint-small) {
76
+ font-size: map-get($type-scale-small, $level);
77
+ line-height: map-get($type-line-medium, $level);
78
+ }
79
+ }
80
+
81
+ $base-font-family: "PT Serif", serif !default;
82
+ $base-font-size: 16px !default;
83
+ $base-font-weight: 400 !default;
84
+ $small-font-size: $base-font-size * 0.875 !default;
85
+
86
+ $alt-font-family: "Open Sans", sans-serif !default;
87
+ $alt-font-weight: bold !default;
88
+
89
+ $spacing-unit: 50px !default;
90
+
91
+ $text-color: #111 !default;
92
+ $background-color: #fdfdfd !default;
93
+ $brand-color: #d33682 !default;
94
+
95
+ $grey-color: #3F3F3F !default;
96
+ $grey-color-light: lighten($grey-color, 50%) !default;
97
+ $grey-color-lighter: lighten($grey-color, 90%) !default;
98
+ $grey-color-dark: darken($grey-color, 25%) !default;
99
+
100
+ // Width of the content area
101
+ $content-width: 34.2em;
102
+
103
+ $on-palm: 600px !default;
104
+ $on-laptop: 800px !default;
105
+
106
+ // Use media queries like this:
107
+ // @include media-query($on-palm) {
108
+ // .wrapper {
109
+ // padding-right: $spacing-unit / 2;
110
+ // padding-left: $spacing-unit / 2;
111
+ // }
112
+ // }
113
+ @mixin media-query($device) {
114
+ @media screen and (max-width: $device) {
115
+ @content;
116
+ }
117
+ }
118
+
119
+ // Import partials.
120
+ @import
121
+ "academic/base",
122
+ "academic/layout",
123
+ "academic/syntax-highlighting"
124
+ ;
@@ -0,0 +1,336 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+
12
+
13
+ /**
14
+ * Basic styling
15
+ */
16
+ body {
17
+ font-family: $base-font-family;
18
+ @include size(p);
19
+ font-weight: $base-font-weight;
20
+ color: $text-color;
21
+ background-color: $background-color;
22
+ -webkit-text-size-adjust: 100%;
23
+ -webkit-font-feature-settings: "kern" 1;
24
+ -moz-font-feature-settings: "kern" 1;
25
+ -o-font-feature-settings: "kern" 1;
26
+ font-feature-settings: "kern" 1;
27
+ font-kerning: normal;
28
+ font-variant-ligatures: common-ligatures contextual;
29
+ -moz-font-feature-settings: "kern", "liga", "clig", "calt";
30
+ -ms-font-feature-settings: "kern", "liga", "clig", "alt";
31
+ -webkit-font-feature-settings: "kern", "liga", "clig", "calt";
32
+ font-feature-settings: "kern", "liga", "clig", "calt";
33
+ overflow-x: hidden;
34
+ }
35
+
36
+
37
+
38
+ /**
39
+ * Set `margin-bottom` to maintain vertical rhythm
40
+ */
41
+ p, blockquote, pre,
42
+ ul, ol, dl, figure,
43
+ %vertical-rhythm {
44
+ margin-bottom: $spacing-unit / 2;
45
+ }
46
+
47
+ h1, h2, h3, h4, h5, h6,
48
+ %vertical-rhythm {
49
+ margin-top: $spacing-unit;
50
+ }
51
+
52
+ h1,
53
+ %vertical-rhythm {
54
+ margin-bottom: $spacing-unit / 7;
55
+ }
56
+
57
+ h4, h5, h6,
58
+ %vertical-rhythm {
59
+ margin-bottom: $spacing-unit / 7;
60
+ }
61
+
62
+ h1 + h2, h2 + h3, h3 + h4,
63
+ h1 + h3, h1 + h4, h2 + h4 {
64
+ margin-top: $spacing-unit /2;
65
+ }
66
+
67
+
68
+
69
+ /**
70
+ * Images
71
+ */
72
+ // img {
73
+ // position: relative;
74
+ // max-width: 60vw;
75
+ // left: calc(-20vw + 20%);
76
+ // vertical-align: middle;
77
+ // }
78
+ img {
79
+ vertical-align: middle;
80
+ max-width: 100%;
81
+ }
82
+
83
+ /**
84
+ * Figures
85
+ */
86
+ figure > img {
87
+ display: block;
88
+ }
89
+
90
+ figcaption {
91
+ font-size: $small-font-size;
92
+ }
93
+
94
+
95
+
96
+ /**
97
+ * Lists
98
+ */
99
+ ul, ol {
100
+ margin-left: $spacing-unit;
101
+ }
102
+
103
+ li {
104
+ > ul,
105
+ > ol {
106
+ margin-bottom: 0;
107
+ }
108
+ }
109
+
110
+
111
+
112
+ /**
113
+ * Headings
114
+ */
115
+
116
+ h1,h2,h3,h4,h5,h6 {
117
+ font-kerning: normal;
118
+ font-variant-ligatures: common-ligatures contextual;
119
+ -moz-font-feature-settings: "kern", "liga", "clig", "calt";
120
+ -ms-font-feature-settings: "kern", "liga", "clig", "alt";
121
+ -webkit-font-feature-settings: "kern", "liga", "clig", "calt";
122
+ font-feature-settings: "kern", "liga", "clig", "calt";
123
+ }
124
+
125
+ h1,h2 {
126
+ letter-spacing: -1px;
127
+ font-family: $alt-font-family;
128
+ @include size(h1);
129
+ font-weight: $alt-font-weight;
130
+ }
131
+
132
+ h2 {
133
+ @include size(h2);
134
+ }
135
+
136
+ h3 {
137
+ font-family: $base-font-family;
138
+ }
139
+
140
+ h3, h4{
141
+ font-weight: normal;
142
+ }
143
+
144
+ h3 {
145
+ font-weight:bold;
146
+ @include size(h3);
147
+ }
148
+
149
+ h4 {
150
+ @include size(h4);
151
+ }
152
+
153
+
154
+
155
+ /**
156
+ * Links
157
+ */
158
+ a {
159
+ color: $brand-color;
160
+ text-decoration: none;
161
+
162
+ &:visited {
163
+ color: darken($brand-color, 5%);
164
+ }
165
+
166
+ &:hover {
167
+ color: $text-color;
168
+ text-decoration: underline;
169
+ }
170
+ }
171
+
172
+
173
+
174
+ /**
175
+ * Blockquotes
176
+ */
177
+
178
+ blockquote {
179
+ color: $grey-color;
180
+ padding-left: $spacing-unit / 2;
181
+ padding-right: $spacing-unit;
182
+ @include size(small);
183
+
184
+ > :last-child {
185
+ margin-bottom: 0;
186
+ }
187
+ }
188
+
189
+
190
+
191
+ /**
192
+ * Code formatting
193
+ */
194
+
195
+ code {
196
+ font-size: $small-font-size;
197
+ padding: 1px 5px;
198
+ }
199
+
200
+ pre {
201
+ display: block;
202
+ padding-top: $spacing-unit / 3;
203
+ padding-bottom: $spacing-unit / 3;
204
+ padding-left: 10px;
205
+ overflow-x: auto;
206
+ @include size(vsmall);
207
+
208
+ > code {
209
+ @include size(vsmall);
210
+ border: 0;
211
+ padding-right: 0;
212
+ padding-left: 0;
213
+ }
214
+ }
215
+
216
+ /**
217
+ * Table
218
+ */
219
+
220
+ table {
221
+ margin: auto;
222
+ border-collapse: collapse;
223
+ @include size(small);
224
+
225
+
226
+ th {
227
+ border-bottom: 1px solid $text-color;
228
+ padding: 5px;
229
+ }
230
+
231
+ td {
232
+ padding: 5px;
233
+ }
234
+ }
235
+
236
+ /**
237
+ * Table
238
+ */
239
+
240
+ hr {
241
+ color: $grey-color;
242
+ margin: $spacing-unit auto $spacing-unit / 2 auto;
243
+ width: 100%;
244
+ padding-left: 10%;
245
+ border: none;
246
+ border-top: 1px dashed $grey-color;
247
+ @include size(small);
248
+ }
249
+
250
+
251
+ /**
252
+ * Wrapper
253
+ */
254
+ .wrapper {
255
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
256
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
257
+ margin-right: auto;
258
+ margin-left: auto;
259
+ padding-right: $spacing-unit;
260
+ padding-left: $spacing-unit;
261
+ @extend %clearfix;
262
+
263
+ @include media-query($on-laptop) {
264
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
265
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
266
+ padding-right: $spacing-unit / 2;
267
+ padding-left: $spacing-unit / 2;
268
+ }
269
+ }
270
+
271
+
272
+
273
+ /**
274
+ * Clearfix
275
+ */
276
+ %clearfix:after {
277
+ content: "";
278
+ display: table;
279
+ clear: both;
280
+ }
281
+
282
+
283
+
284
+ /**
285
+ * Icons
286
+ */
287
+ .icon > svg {
288
+ display: inline-block;
289
+ vertical-align: middle;
290
+
291
+ path {
292
+ fill: $grey-color;
293
+ }
294
+ }
295
+
296
+ /**
297
+ * Footnotes
298
+ */
299
+
300
+ .footnotes {
301
+ @include size(small);
302
+ color: $grey-color;
303
+ }
304
+
305
+ /**
306
+ * Forms
307
+ */
308
+
309
+ form {
310
+
311
+ input {
312
+ @include size(small);
313
+ color: $grey-color;
314
+ font-family: $alt-font-family;
315
+ background: $background-color;
316
+ border: 1px solid $grey-color;
317
+ padding: $spacing-unit / 6;
318
+
319
+ &[type=email] {
320
+ &:focus {
321
+ border-color: $brand-color;
322
+ }
323
+ }
324
+
325
+ &[type=submit] {
326
+ &:hover {
327
+ color: $background-color;
328
+ background: $grey-color;
329
+ }
330
+
331
+ &:active {
332
+ background: $brand-color;
333
+ }
334
+ }
335
+ }
336
+ }