minimal-mistakes-jekyll 4.13.0 → 4.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/LICENSE +21 -0
- data/README.md +33 -17
- data/_data/ui-text.yml +45 -0
- data/_includes/author-profile-custom-links.html +1 -1
- data/_includes/author-profile.html +25 -25
- data/_includes/breadcrumbs.html +3 -3
- data/_includes/comments-providers/scripts.html +2 -0
- data/_includes/comments-providers/utterances.html +20 -0
- data/_includes/comments.html +5 -2
- data/_includes/footer.html +1 -1
- data/_includes/head.html +1 -3
- data/_includes/page__hero.html +6 -1
- data/_includes/scripts.html +4 -4
- data/_includes/search/algolia-search-scripts.html +2 -2
- data/_includes/video +4 -2
- data/_layouts/default.html +7 -7
- data/_layouts/single.html +3 -0
- data/_sass/minimal-mistakes.scss +2 -2
- data/_sass/minimal-mistakes/_archive.scss +70 -0
- data/_sass/minimal-mistakes/_base.scss +1 -1
- data/_sass/minimal-mistakes/_mixins.scss +2 -2
- data/_sass/minimal-mistakes/_navigation.scss +6 -12
- data/_sass/minimal-mistakes/_search.scss +5 -4
- data/_sass/minimal-mistakes/_utilities.scss +10 -2
- data/_sass/minimal-mistakes/_variables.scss +7 -6
- data/_sass/minimal-mistakes/skins/_dark.scss +4 -18
- data/_sass/minimal-mistakes/skins/_neon.scss +4 -0
- data/_sass/minimal-mistakes/skins/_plum.scss +4 -0
- data/assets/js/lunr/lunr-store.js +4 -2
- data/assets/js/lunr/lunr.js +591 -84
- data/assets/js/lunr/lunr.min.js +3 -3
- data/assets/js/main.min.js +1 -1
- metadata +18 -4
- data/LICENSE.txt +0 -63
- data/_includes/base_path +0 -5
data/_includes/breadcrumbs.html
CHANGED
@@ -13,12 +13,12 @@
|
|
13
13
|
{% endif %}
|
14
14
|
|
15
15
|
<nav class="breadcrumbs">
|
16
|
-
<ol itemscope itemtype="
|
16
|
+
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
17
17
|
{% assign crumbs = page.url | split: '/' %}
|
18
18
|
{% assign i = 1 %}
|
19
19
|
{% for crumb in crumbs offset: 1 %}
|
20
20
|
{% if forloop.first %}
|
21
|
-
<li itemprop="itemListElement" itemscope itemtype="
|
21
|
+
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
22
22
|
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
23
23
|
<meta itemprop="position" content="{{ i }}" />
|
24
24
|
</li>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<li class="current">{{ page.title }}</li>
|
29
29
|
{% else %}
|
30
30
|
{% assign i = i | plus: 1 %}
|
31
|
-
<li itemprop="itemListElement" itemscope itemtype="
|
31
|
+
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
32
32
|
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
33
33
|
<meta itemprop="position" content="{{ i }}" />
|
34
34
|
</li>
|
@@ -12,6 +12,8 @@
|
|
12
12
|
{% include /comments-providers/staticman.html %}
|
13
13
|
{% when "staticman_v2" %}
|
14
14
|
{% include /comments-providers/staticman_v2.html %}
|
15
|
+
{% when "utterances" %}
|
16
|
+
{% include /comments-providers/utterances.html %}
|
15
17
|
{% when "custom" %}
|
16
18
|
{% include /comments-providers/custom.html %}
|
17
19
|
{% endcase %}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<script>
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
(function() {
|
5
|
+
var commentContainer = document.querySelector('#utterances-comments');
|
6
|
+
|
7
|
+
if (!commentContainer) {
|
8
|
+
return;
|
9
|
+
}
|
10
|
+
|
11
|
+
var script = document.createElement('script');
|
12
|
+
script.setAttribute('src', 'https://utteranc.es/client.js');
|
13
|
+
script.setAttribute('repo', '{{ site.repository }}');
|
14
|
+
script.setAttribute('issue-term', 'pathname');
|
15
|
+
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');
|
16
|
+
script.setAttribute('crossorigin', 'anonymous');
|
17
|
+
|
18
|
+
commentContainer.appendChild(script);
|
19
|
+
})();
|
20
|
+
</script>
|
data/_includes/comments.html
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
<div class="page__comments-form">
|
51
51
|
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
|
52
52
|
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
53
|
-
<form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v2/entry/{{ site.repository }}/{{ site.staticman.branch }}/comments">
|
53
|
+
<form id="new_comment" class="page__comments-form js-form form" method="post" action="{{ site.staticman.endpoint | default: 'https://api.staticman.net/v2/entry/' }}{{ site.repository }}/{{ site.staticman.branch }}/comments">
|
54
54
|
<div class="form__spinner">
|
55
55
|
<i class="fas fa-spinner fa-spin fa-3x fa-fw"></i>
|
56
56
|
<span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span>
|
@@ -165,7 +165,10 @@
|
|
165
165
|
<!-- End new comment form -->
|
166
166
|
{% endif %}
|
167
167
|
</section>
|
168
|
+
{% when "utterances" %}
|
169
|
+
<h4 class="page__comments-title">{{ comments_label }}</h4>
|
170
|
+
<section id="utterances-comments"></section>
|
168
171
|
{% when "custom" %}
|
169
172
|
<section id="custom-comments"></section>
|
170
173
|
{% endcase %}
|
171
|
-
</div>
|
174
|
+
</div>
|
data/_includes/footer.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
{% if site.footer.links %}
|
8
8
|
{% for link in site.footer.links %}
|
9
9
|
{% if link.label and link.url %}
|
10
|
-
<li><a href="{{ link.url }}"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i> {{ link.label }}</a></li>
|
10
|
+
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i> {{ link.label }}</a></li>
|
11
11
|
{% endif %}
|
12
12
|
{% endfor %}
|
13
13
|
{% endif %}
|
data/_includes/head.html
CHANGED
@@ -5,8 +5,6 @@
|
|
5
5
|
<link href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
6
6
|
|
7
7
|
<!-- http://t.co/dKP3o1e -->
|
8
|
-
<meta name="HandheldFriendly" content="True">
|
9
|
-
<meta name="MobileOptimized" content="320">
|
10
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
11
9
|
|
12
10
|
<script>
|
@@ -40,4 +38,4 @@
|
|
40
38
|
{% endif %}
|
41
39
|
<script src="{{ script_path }}"></script>
|
42
40
|
{% endfor %}
|
43
|
-
{% endif %}
|
41
|
+
{% endif %}
|
data/_includes/page__hero.html
CHANGED
@@ -54,7 +54,12 @@
|
|
54
54
|
{% if page.header.actions %}
|
55
55
|
<p>
|
56
56
|
{% for action in page.header.actions %}
|
57
|
-
|
57
|
+
{% if action.url contains "://" %}
|
58
|
+
{% assign url = action.url %}
|
59
|
+
{% else %}
|
60
|
+
{% assign url = action.url | relative_url %}
|
61
|
+
{% endif %}
|
62
|
+
<a href="{{ url }}" class="btn btn--light-outline btn--large">{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a>
|
58
63
|
{% endfor %}
|
59
64
|
{% endif %}
|
60
65
|
</div>
|
data/_includes/scripts.html
CHANGED
@@ -9,18 +9,18 @@
|
|
9
9
|
{% endfor %}
|
10
10
|
{% else %}
|
11
11
|
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
12
|
-
<script src="https://use.fontawesome.com/releases/v5.
|
12
|
+
<script defer src="https://use.fontawesome.com/releases/v5.5.0/js/all.js" integrity="sha384-GqVMZRt5Gn7tB9D9q7ONtcp4gtHIUEW/yG7h98J7IpE3kpi+srfFyyB/04OV6pG0" crossorigin="anonymous"></script>
|
13
13
|
{% endif %}
|
14
14
|
|
15
15
|
{% if site.search == true or page.layout == "search" %}
|
16
16
|
{%- assign search_provider = site.search_provider | default: "lunr" -%}
|
17
17
|
{%- case search_provider -%}
|
18
18
|
{%- when "lunr" -%}
|
19
|
-
{%
|
19
|
+
{% include_cached search/lunr-search-scripts.html %}
|
20
20
|
{%- when "google" -%}
|
21
|
-
{%
|
21
|
+
{% include_cached search/google-search-scripts.html %}
|
22
22
|
{%- when "algolia" -%}
|
23
|
-
{%
|
23
|
+
{% include_cached search/algolia-search-scripts.html %}
|
24
24
|
{%- endcase -%}
|
25
25
|
{% endif %}
|
26
26
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!-- Including InstantSearch.js library and styling -->
|
2
2
|
<script src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch.min.js"></script>
|
3
|
-
<link rel="stylesheet"
|
4
|
-
<link rel="stylesheet"
|
3
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch.min.css">
|
4
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch-theme-algolia.min.css">
|
5
5
|
|
6
6
|
<script>
|
7
7
|
// Instanciating InstantSearch.js with Algolia credentials
|
data/_includes/video
CHANGED
@@ -4,8 +4,10 @@
|
|
4
4
|
<!-- Courtesy of embedresponsively.com //-->
|
5
5
|
<div class="responsive-video-container">
|
6
6
|
{% if video_provider == "vimeo" %}
|
7
|
-
<iframe src="https://player.vimeo.com/video/{{ video_id }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
|
7
|
+
<iframe src="https://player.vimeo.com/video/{{ video_id }}?dnt=true" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
|
8
8
|
{% elsif video_provider == "youtube" %}
|
9
|
-
<iframe src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
9
|
+
<iframe src="https://www.youtube-nocookie.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
10
|
+
{% elsif video_provider == "google-drive" %}
|
11
|
+
<iframe src="https://drive.google.com/file/d/{{ video_id }}/preview" frameborder="0" allowfullscreen></iframe>
|
10
12
|
{% endif %}
|
11
13
|
</div>
|
data/_layouts/default.html
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
<!doctype html>
|
5
5
|
<!--
|
6
|
-
Minimal Mistakes Jekyll Theme 4.
|
6
|
+
Minimal Mistakes Jekyll Theme 4.14.0 by Michael Rose
|
7
7
|
Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
|
8
8
|
Free for personal and commercial use under the MIT license
|
9
|
-
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
9
|
+
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
10
10
|
-->
|
11
11
|
<html lang="{{ site.locale | slice: 0,2 | default: "en" }}" class="no-js">
|
12
12
|
<head>
|
@@ -16,8 +16,8 @@
|
|
16
16
|
|
17
17
|
<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}">
|
18
18
|
|
19
|
-
{%
|
20
|
-
{%
|
19
|
+
{% include_cached browser-upgrade.html %}
|
20
|
+
{% include_cached masthead.html %}
|
21
21
|
|
22
22
|
<div class="initial-content">
|
23
23
|
{{ content }}
|
@@ -25,18 +25,18 @@
|
|
25
25
|
|
26
26
|
{% if site.search == true %}
|
27
27
|
<div class="search-content">
|
28
|
-
{%
|
28
|
+
{% include_cached search/search_form.html %}
|
29
29
|
</div>
|
30
30
|
{% endif %}
|
31
31
|
|
32
32
|
<div class="page__footer">
|
33
33
|
<footer>
|
34
34
|
{% include footer/custom.html %}
|
35
|
-
{%
|
35
|
+
{% include_cached footer.html %}
|
36
36
|
</footer>
|
37
37
|
</div>
|
38
38
|
|
39
39
|
{% include scripts.html %}
|
40
40
|
|
41
41
|
</body>
|
42
|
-
</html>
|
42
|
+
</html>
|
data/_layouts/single.html
CHANGED
@@ -84,6 +84,9 @@ layout: default
|
|
84
84
|
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
|
85
85
|
<div class="grid__wrapper">
|
86
86
|
{% for post in site.posts limit:4 %}
|
87
|
+
{% if post.id == page.id %}
|
88
|
+
{% continue %}
|
89
|
+
{% endif %}
|
87
90
|
{% include archive-single.html type="grid" %}
|
88
91
|
{% endfor %}
|
89
92
|
</div>
|
data/_sass/minimal-mistakes.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
|
-
* Minimal Mistakes Jekyll Theme 4.
|
2
|
+
* Minimal Mistakes Jekyll Theme 4.14.0 by Michael Rose
|
3
3
|
* Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
|
4
|
-
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
4
|
+
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE)
|
5
5
|
*/
|
6
6
|
|
7
7
|
/* Variables */
|
@@ -18,6 +18,10 @@
|
|
18
18
|
}
|
19
19
|
}
|
20
20
|
|
21
|
+
.archive__item {
|
22
|
+
position: relative;
|
23
|
+
}
|
24
|
+
|
21
25
|
.archive__subtitle {
|
22
26
|
margin: 1.414em 0 0;
|
23
27
|
padding-bottom: 0.5em;
|
@@ -37,6 +41,15 @@
|
|
37
41
|
overflow: hidden;
|
38
42
|
text-overflow: ellipsis;
|
39
43
|
|
44
|
+
a::before {
|
45
|
+
content: '';
|
46
|
+
position: absolute;
|
47
|
+
left: 0;
|
48
|
+
top: 0;
|
49
|
+
right: 0;
|
50
|
+
bottom: 0;
|
51
|
+
}
|
52
|
+
|
40
53
|
a + a {
|
41
54
|
opacity: 0.5;
|
42
55
|
}
|
@@ -57,6 +70,10 @@
|
|
57
70
|
& + p {
|
58
71
|
text-indent: 0;
|
59
72
|
}
|
73
|
+
|
74
|
+
a {
|
75
|
+
position: relative;
|
76
|
+
}
|
60
77
|
}
|
61
78
|
|
62
79
|
.archive__item-teaser {
|
@@ -215,6 +232,7 @@
|
|
215
232
|
}
|
216
233
|
|
217
234
|
.feature__item {
|
235
|
+
position: relative;
|
218
236
|
margin-bottom: 2em;
|
219
237
|
font-size: 1.125em;
|
220
238
|
|
@@ -249,7 +267,17 @@
|
|
249
267
|
padding-right: gutter(1 of 12);
|
250
268
|
}
|
251
269
|
|
270
|
+
a.btn::before {
|
271
|
+
content: '';
|
272
|
+
position: absolute;
|
273
|
+
left: 0;
|
274
|
+
top: 0;
|
275
|
+
right: 0;
|
276
|
+
bottom: 0;
|
277
|
+
}
|
278
|
+
|
252
279
|
&--left {
|
280
|
+
position: relative;
|
253
281
|
float: left;
|
254
282
|
margin-left: 0;
|
255
283
|
margin-right: 0;
|
@@ -257,10 +285,23 @@
|
|
257
285
|
clear: both;
|
258
286
|
font-size: 1.125em;
|
259
287
|
|
288
|
+
.archive__item {
|
289
|
+
float: left;
|
290
|
+
}
|
291
|
+
|
260
292
|
.archive__item-teaser {
|
261
293
|
margin-bottom: 2em;
|
262
294
|
}
|
263
295
|
|
296
|
+
a.btn::before {
|
297
|
+
content: '';
|
298
|
+
position: absolute;
|
299
|
+
left: 0;
|
300
|
+
top: 0;
|
301
|
+
right: 0;
|
302
|
+
bottom: 0;
|
303
|
+
}
|
304
|
+
|
264
305
|
@include breakpoint($small) {
|
265
306
|
.archive__item-teaser {
|
266
307
|
float: left;
|
@@ -277,6 +318,7 @@
|
|
277
318
|
}
|
278
319
|
|
279
320
|
&--right {
|
321
|
+
position: relative;
|
280
322
|
float: left;
|
281
323
|
margin-left: 0;
|
282
324
|
margin-right: 0;
|
@@ -284,10 +326,23 @@
|
|
284
326
|
clear: both;
|
285
327
|
font-size: 1.125em;
|
286
328
|
|
329
|
+
.archive__item {
|
330
|
+
float: left;
|
331
|
+
}
|
332
|
+
|
287
333
|
.archive__item-teaser {
|
288
334
|
margin-bottom: 2em;
|
289
335
|
}
|
290
336
|
|
337
|
+
a.btn::before {
|
338
|
+
content: '';
|
339
|
+
position: absolute;
|
340
|
+
left: 0;
|
341
|
+
top: 0;
|
342
|
+
right: 0;
|
343
|
+
bottom: 0;
|
344
|
+
}
|
345
|
+
|
291
346
|
@include breakpoint($small) {
|
292
347
|
text-align: right;
|
293
348
|
|
@@ -306,6 +361,7 @@
|
|
306
361
|
}
|
307
362
|
|
308
363
|
&--center {
|
364
|
+
position: relative;
|
309
365
|
float: left;
|
310
366
|
margin-left: 0;
|
311
367
|
margin-right: 0;
|
@@ -313,10 +369,24 @@
|
|
313
369
|
clear: both;
|
314
370
|
font-size: 1.125em;
|
315
371
|
|
372
|
+
.archive__item {
|
373
|
+
float: left;
|
374
|
+
width: 100%;
|
375
|
+
}
|
376
|
+
|
316
377
|
.archive__item-teaser {
|
317
378
|
margin-bottom: 2em;
|
318
379
|
}
|
319
380
|
|
381
|
+
a.btn::before {
|
382
|
+
content: '';
|
383
|
+
position: absolute;
|
384
|
+
left: 0;
|
385
|
+
top: 0;
|
386
|
+
right: 0;
|
387
|
+
bottom: 0;
|
388
|
+
}
|
389
|
+
|
320
390
|
@include breakpoint($small) {
|
321
391
|
text-align: center;
|
322
392
|
|
@@ -10,19 +10,14 @@
|
|
10
10
|
@include clearfix;
|
11
11
|
margin: 0 auto;
|
12
12
|
max-width: 100%;
|
13
|
-
padding-left:
|
14
|
-
padding-right:
|
13
|
+
padding-left: 1em;
|
14
|
+
padding-right: 1em;
|
15
15
|
font-family: $sans-serif;
|
16
16
|
-webkit-animation: $intro-transition;
|
17
17
|
animation: $intro-transition;
|
18
18
|
-webkit-animation-delay: 0.3s;
|
19
19
|
animation-delay: 0.3s;
|
20
20
|
|
21
|
-
@include breakpoint($large) {
|
22
|
-
padding-left: 1em;
|
23
|
-
padding-right: 1em;
|
24
|
-
}
|
25
|
-
|
26
21
|
@include breakpoint($x-large) {
|
27
22
|
max-width: $x-large;
|
28
23
|
}
|
@@ -34,11 +29,11 @@
|
|
34
29
|
|
35
30
|
@include breakpoint($large) {
|
36
31
|
float: right;
|
37
|
-
width:
|
32
|
+
width: calc(100% - #{$right-sidebar-width-narrow});
|
38
33
|
}
|
39
34
|
|
40
35
|
@include breakpoint($x-large) {
|
41
|
-
|
36
|
+
width: calc(100% - #{$right-sidebar-width});
|
42
37
|
}
|
43
38
|
}
|
44
39
|
|
@@ -205,8 +200,7 @@
|
|
205
200
|
height: $nav-toggle-height;
|
206
201
|
border: 0;
|
207
202
|
outline: none;
|
208
|
-
color:
|
209
|
-
background-color: $primary-color;
|
203
|
+
background-color: transparent;
|
210
204
|
cursor: pointer;
|
211
205
|
}
|
212
206
|
|
@@ -476,7 +470,7 @@
|
|
476
470
|
|
477
471
|
.nav__title {
|
478
472
|
margin: 0;
|
479
|
-
padding: 0.
|
473
|
+
padding: 0.5rem 0.75rem;
|
480
474
|
font-family: $sans-serif-narrow;
|
481
475
|
font-size: $type-size-5;
|
482
476
|
font-weight: bold;
|