minimal-mistakes-jekyll 4.13.0 → 4.14.0

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.
@@ -13,12 +13,12 @@
13
13
  {% endif %}
14
14
 
15
15
  <nav class="breadcrumbs">
16
- <ol itemscope itemtype="http://schema.org/BreadcrumbList">
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="http://schema.org/ListItem">
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="http://schema.org/ListItem">
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>
@@ -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>
@@ -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 %}
@@ -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 %}
@@ -54,7 +54,12 @@
54
54
  {% if page.header.actions %}
55
55
  <p>
56
56
  {% for action in page.header.actions %}
57
- <a href="{{ action.url }}" class="btn btn--light-outline btn--large">{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a>
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>
@@ -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.2.0/js/all.js"></script>
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
- {% include search/lunr-search-scripts.html %}
19
+ {% include_cached search/lunr-search-scripts.html %}
20
20
  {%- when "google" -%}
21
- {% include search/google-search-scripts.html %}
21
+ {% include_cached search/google-search-scripts.html %}
22
22
  {%- when "algolia" -%}
23
- {% include search/algolia-search-scripts.html %}
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" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch.min.css">
4
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch-theme-algolia.min.css">
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
@@ -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>
@@ -3,10 +3,10 @@
3
3
 
4
4
  <!doctype html>
5
5
  <!--
6
- Minimal Mistakes Jekyll Theme 4.13.0 by Michael Rose
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.txt
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
- {% include browser-upgrade.html %}
20
- {% include masthead.html %}
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
- {% include search/search_form.html %}
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
- {% include footer.html %}
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>
@@ -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>
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * Minimal Mistakes Jekyll Theme 4.13.0 by Michael Rose
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.txt)
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
 
@@ -167,7 +167,7 @@ figcaption > code,
167
167
  td > code {
168
168
  padding-top: 0.1rem;
169
169
  padding-bottom: 0.1rem;
170
- font-size: $type-size-6;
170
+ font-size: 0.8em;
171
171
  background: $code-background-color;
172
172
  border-radius: $border-radius;
173
173
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  %tab-focus {
6
6
  /* Default*/
7
- outline: thin dotted $warning-color;
7
+ outline: thin dotted $focus-color;
8
8
  /* Webkit*/
9
- outline: 5px auto $warning-color;
9
+ outline: 5px auto $focus-color;
10
10
  outline-offset: -2px;
11
11
  }
12
12
 
@@ -10,19 +10,14 @@
10
10
  @include clearfix;
11
11
  margin: 0 auto;
12
12
  max-width: 100%;
13
- padding-left: 2em;
14
- padding-right: 2em;
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: span(10 of 12);
32
+ width: calc(100% - #{$right-sidebar-width-narrow});
38
33
  }
39
34
 
40
35
  @include breakpoint($x-large) {
41
- padding-left: gutter(0.5 of 12);
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: #fff;
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.25rem 0.75rem;
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;