minimal-mistakes-jekyll 4.11.2 → 4.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,14 @@ layout: archive
4
4
 
5
5
  {{ content }}
6
6
 
7
+ {% assign categories_max = 0 %}
8
+ {% for category in site.categories %}
9
+ {% if category[1].size > categories_max %}
10
+ {% assign categories_max = category[1].size %}
11
+ {% endif %}
12
+ {% endfor %}
13
+
7
14
  <ul class="taxonomy__index">
8
- {% assign categories_max = 0 %}
9
- {% for category in site.categories %}
10
- {% if category[1].size > categories_max %}
11
- {% assign categories_max = category[1].size %}
12
- {% endif %}
13
- {% endfor %}
14
15
  {% for i in (1..categories_max) reversed %}
15
16
  {% for category in site.categories %}
16
17
  {% if category[1].size == i %}
@@ -24,13 +25,6 @@ layout: archive
24
25
  {% endfor %}
25
26
  </ul>
26
27
 
27
- {% assign categories_max = 0 %}
28
- {% for category in site.categories %}
29
- {% if category[1].size > categories_max %}
30
- {% assign categories_max = category[1].size %}
31
- {% endif %}
32
- {% endfor %}
33
-
34
28
  {% for i in (1..categories_max) reversed %}
35
29
  {% for category in site.categories %}
36
30
  {% if category[1].size == i %}
@@ -3,7 +3,7 @@
3
3
 
4
4
  <!doctype html>
5
5
  <!--
6
- Minimal Mistakes Jekyll Theme 4.11.2 by Michael Rose
6
+ Minimal Mistakes Jekyll Theme 4.12.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
9
  https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
@@ -1,29 +1,29 @@
1
- ---
2
- layout: archive
3
- ---
4
-
5
- {{ content }}
6
-
7
- <ul class="taxonomy__index">
8
- {% assign postsInYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
9
- {% for year in postsInYear %}
10
- <li>
11
- <a href="#{{ year.name }}">
12
- <strong>{{ year.name }}</strong> <span class="taxonomy__count">{{ year.items | size }}</span>
13
- </a>
14
- </li>
15
- {% endfor %}
16
- </ul>
17
-
18
- {% assign postsByYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
19
- {% for year in postsByYear %}
20
- <section id="{{ year.name }}" class="taxonomy__section">
21
- <h2 class="archive__subtitle">{{ year.name }}</h2>
22
- <div class="entries-{{ page.entries_layout | default: 'list' }}">
23
- {% for post in year.items %}
24
- {% include archive-single.html type=page.entries_layout %}
25
- {% endfor %}
26
- </div>
27
- <a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
28
- </section>
29
- {% endfor %}
1
+ ---
2
+ layout: archive
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <ul class="taxonomy__index">
8
+ {% assign postsInYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
9
+ {% for year in postsInYear %}
10
+ <li>
11
+ <a href="#{{ year.name }}">
12
+ <strong>{{ year.name }}</strong> <span class="taxonomy__count">{{ year.items | size }}</span>
13
+ </a>
14
+ </li>
15
+ {% endfor %}
16
+ </ul>
17
+
18
+ {% assign postsByYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
19
+ {% for year in postsByYear %}
20
+ <section id="{{ year.name }}" class="taxonomy__section">
21
+ <h2 class="archive__subtitle">{{ year.name }}</h2>
22
+ <div class="entries-{{ page.entries_layout | default: 'list' }}">
23
+ {% for post in year.items %}
24
+ {% include archive-single.html type=page.entries_layout %}
25
+ {% endfor %}
26
+ </div>
27
+ <a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
28
+ </section>
29
+ {% endfor %}
@@ -27,6 +27,13 @@ layout: default
27
27
  {%- when "lunr" -%}
28
28
  <input type="text" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
29
29
  <div id="results" class="results"></div>
30
+ {%- when "google" -%}
31
+ <form onsubmit="return executeQuery();" id="cse-search-box-form-id">
32
+ <input type="text" id="cse-search-input-box-id" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
33
+ </form>
34
+ <div id="results" class="results">
35
+ <gcse:searchresults-only></gcse:searchresults-only>
36
+ </div>
30
37
  {%- when "algolia" -%}
31
38
  <div class="search-searchbar"></div>
32
39
  <div class="search-hits"></div>
@@ -35,7 +35,7 @@ layout: default
35
35
 
36
36
  <section class="page__content" itemprop="text">
37
37
  {% if page.toc %}
38
- <aside class="sidebar__right">
38
+ <aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
39
39
  <nav class="toc">
40
40
  <header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label }}</h4></header>
41
41
  {% include toc.html sanitize=true html=content h_min=2 h_max=3 class="toc__menu" %}
@@ -1,22 +1,22 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
6
- {% include page__hero.html %}
7
- {% elsif page.header.video.id and page.header.video.provider %}
8
- {% include page__hero_video.html %}
9
- {% endif %}
10
-
11
- <div id="main" role="main">
12
- <article class="splash" itemscope itemtype="http://schema.org/CreativeWork">
13
- {% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
14
- {% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
15
- {% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
16
- {% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
17
-
18
- <section class="page__content" itemprop="text">
19
- {{ content }}
20
- </section>
21
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
6
+ {% include page__hero.html %}
7
+ {% elsif page.header.video.id and page.header.video.provider %}
8
+ {% include page__hero_video.html %}
9
+ {% endif %}
10
+
11
+ <div id="main" role="main">
12
+ <article class="splash" itemscope itemtype="http://schema.org/CreativeWork">
13
+ {% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
14
+ {% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
15
+ {% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
16
+ {% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
17
+
18
+ <section class="page__content" itemprop="text">
19
+ {{ content }}
20
+ </section>
21
+ </article>
22
22
  </div>
@@ -1,48 +1,42 @@
1
- ---
2
- layout: archive
3
- ---
4
-
5
- {{ content }}
6
-
7
- <ul class="taxonomy__index">
8
- {% assign tags_max = 0 %}
9
- {% for tag in site.tags %}
10
- {% if tag[1].size > tags_max %}
11
- {% assign tags_max = tag[1].size %}
12
- {% endif %}
13
- {% endfor %}
14
- {% for i in (1..tags_max) reversed %}
15
- {% for tag in site.tags %}
16
- {% if tag[1].size == i %}
17
- <li>
18
- <a href="#{{ tag[0] | slugify }}">
19
- <strong>{{ tag[0] }}</strong> <span class="taxonomy__count">{{ i }}</span>
20
- </a>
21
- </li>
22
- {% endif %}
23
- {% endfor %}
24
- {% endfor %}
25
- </ul>
26
-
27
- {% assign tags_max = 0 %}
28
- {% for tag in site.tags %}
29
- {% if tag[1].size > tags_max %}
30
- {% assign tags_max = tag[1].size %}
31
- {% endif %}
32
- {% endfor %}
33
-
34
- {% for i in (1..tags_max) reversed %}
35
- {% for tag in site.tags %}
36
- {% if tag[1].size == i %}
37
- <section id="{{ tag[0] | slugify | downcase }}" class="taxonomy__section">
38
- <h2 class="archive__subtitle">{{ tag[0] }}</h2>
39
- <div class="entries-{{ page.entries_layout | default: 'list' }}">
40
- {% for post in tag.last %}
41
- {% include archive-single.html type=page.entries_layout %}
42
- {% endfor %}
43
- </div>
44
- <a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
45
- </section>
46
- {% endif %}
47
- {% endfor %}
48
- {% endfor %}
1
+ ---
2
+ layout: archive
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ {% assign tags_max = 0 %}
8
+ {% for tag in site.tags %}
9
+ {% if tag[1].size > tags_max %}
10
+ {% assign tags_max = tag[1].size %}
11
+ {% endif %}
12
+ {% endfor %}
13
+
14
+ <ul class="taxonomy__index">
15
+ {% for i in (1..tags_max) reversed %}
16
+ {% for tag in site.tags %}
17
+ {% if tag[1].size == i %}
18
+ <li>
19
+ <a href="#{{ tag[0] | slugify }}">
20
+ <strong>{{ tag[0] }}</strong> <span class="taxonomy__count">{{ i }}</span>
21
+ </a>
22
+ </li>
23
+ {% endif %}
24
+ {% endfor %}
25
+ {% endfor %}
26
+ </ul>
27
+
28
+ {% for i in (1..tags_max) reversed %}
29
+ {% for tag in site.tags %}
30
+ {% if tag[1].size == i %}
31
+ <section id="{{ tag[0] | slugify | downcase }}" class="taxonomy__section">
32
+ <h2 class="archive__subtitle">{{ tag[0] }}</h2>
33
+ <div class="entries-{{ page.entries_layout | default: 'list' }}">
34
+ {% for post in tag.last %}
35
+ {% include archive-single.html type=page.entries_layout %}
36
+ {% endfor %}
37
+ </div>
38
+ <a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
39
+ </section>
40
+ {% endif %}
41
+ {% endfor %}
42
+ {% endfor %}
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Minimal Mistakes Jekyll Theme 4.11.2 by Michael Rose
2
+ * Minimal Mistakes Jekyll Theme 4.12.0 by Michael Rose
3
3
  * Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
4
4
  * Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt)
5
5
  */
@@ -63,13 +63,40 @@
63
63
  }
64
64
 
65
65
  .archive__item-teaser {
66
+ position: relative;
66
67
  border-radius: $border-radius;
67
68
  overflow: hidden;
69
+
68
70
  img {
69
71
  width: 100%;
70
72
  }
71
73
  }
72
74
 
75
+ .archive__item-caption {
76
+ position: absolute;
77
+ bottom: 0;
78
+ right: 0;
79
+ margin: 0 auto;
80
+ padding: 2px 5px;
81
+ color: #fff;
82
+ font-family: $caption-font-family;
83
+ font-size: $type-size-8;
84
+ background: #000;
85
+ text-align: right;
86
+ z-index: 5;
87
+ opacity: 0.5;
88
+ border-radius: $border-radius 0 0 0;
89
+
90
+ @include breakpoint($large) {
91
+ padding: 5px 10px;
92
+ }
93
+
94
+ a {
95
+ color: #fff;
96
+ text-decoration: none;
97
+ }
98
+ }
99
+
73
100
  /*
74
101
  List view
75
102
  ========================================================================== */
@@ -1,85 +1,91 @@
1
- /* ==========================================================================
2
- FOOTER
3
- ========================================================================== */
4
-
5
- .page__footer {
6
- @include clearfix;
7
- float: left;
8
- margin-left: 0;
9
- margin-right: 0;
10
- width: 100%;
11
- clear: both;
12
- /* sticky footer fix start */
13
- position: absolute;
14
- bottom: 0;
15
- height: auto;
16
- /* sticky footer fix end */
17
- margin-top: 3em;
18
- color: $muted-text-color;
19
- -webkit-animation: $intro-transition;
20
- animation: $intro-transition;
21
- -webkit-animation-delay: 0.45s;
22
- animation-delay: 0.45s;
23
- background-color: $footer-background-color;
24
-
25
- footer {
26
- @include clearfix;
27
- margin-left: auto;
28
- margin-right: auto;
29
- margin-top: 2em;
30
- max-width: 100%;
31
- padding: 0 1em 2em;
32
-
33
- @include breakpoint($x-large) {
34
- max-width: $x-large;
35
- }
36
- }
37
-
38
- a {
39
- color: inherit;
40
- text-decoration: none;
41
-
42
- &:hover {
43
- text-decoration: underline;
44
- }
45
- }
46
-
47
- .fas,
48
- .fab,
49
- .far,
50
- .fal {
51
- color: $muted-text-color;
52
- }
53
- }
54
-
55
- .page__footer-copyright {
56
- font-family: $global-font-family;
57
- font-size: $type-size-7;
58
- }
59
-
60
- .page__footer-follow {
61
- ul {
62
- margin: 0;
63
- padding: 0;
64
- list-style-type: none;
65
- }
66
-
67
- li {
68
- display: inline-block;
69
- padding-top: 5px;
70
- padding-bottom: 5px;
71
- font-family: $sans-serif-narrow;
72
- font-size: $type-size-6;
73
- text-transform: uppercase;
74
- }
75
-
76
- li + li:before {
77
- content: "";
78
- padding-right: 5px;
79
- }
80
-
81
- a {
82
- padding-right: 10px;
83
- font-weight: bold;
84
- }
85
- }
1
+ /* ==========================================================================
2
+ FOOTER
3
+ ========================================================================== */
4
+
5
+ .page__footer {
6
+ @include clearfix;
7
+ float: left;
8
+ margin-left: 0;
9
+ margin-right: 0;
10
+ width: 100%;
11
+ clear: both;
12
+ /* sticky footer fix start */
13
+ position: absolute;
14
+ bottom: 0;
15
+ height: auto;
16
+ /* sticky footer fix end */
17
+ margin-top: 3em;
18
+ color: $muted-text-color;
19
+ -webkit-animation: $intro-transition;
20
+ animation: $intro-transition;
21
+ -webkit-animation-delay: 0.45s;
22
+ animation-delay: 0.45s;
23
+ background-color: $footer-background-color;
24
+
25
+ footer {
26
+ @include clearfix;
27
+ margin-left: auto;
28
+ margin-right: auto;
29
+ margin-top: 2em;
30
+ max-width: 100%;
31
+ padding: 0 1em 2em;
32
+
33
+ @include breakpoint($x-large) {
34
+ max-width: $x-large;
35
+ }
36
+ }
37
+
38
+ a {
39
+ color: inherit;
40
+ text-decoration: none;
41
+
42
+ &:hover {
43
+ text-decoration: underline;
44
+ }
45
+ }
46
+
47
+ .fas,
48
+ .fab,
49
+ .far,
50
+ .fal {
51
+ color: $muted-text-color;
52
+ }
53
+ }
54
+
55
+ .page__footer-copyright {
56
+ font-family: $global-font-family;
57
+ font-size: $type-size-7;
58
+ }
59
+
60
+ .page__footer-follow {
61
+ ul {
62
+ margin: 0;
63
+ padding: 0;
64
+ list-style-type: none;
65
+ }
66
+
67
+ li {
68
+ display: inline-block;
69
+ padding-top: 5px;
70
+ padding-bottom: 5px;
71
+ font-family: $sans-serif-narrow;
72
+ font-size: $type-size-6;
73
+ text-transform: uppercase;
74
+ }
75
+
76
+ li + li:before {
77
+ content: "";
78
+ padding-right: 5px;
79
+ }
80
+
81
+ a {
82
+ padding-right: 10px;
83
+ font-weight: bold;
84
+ }
85
+
86
+ .social-icons {
87
+ a {
88
+ white-space: nowrap;
89
+ }
90
+ }
91
+ }