minimal-mistakes-jekyll 4.12.0 → 4.12.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +1,28 @@
1
- {% if site.footer_scripts %}
2
- {% for script in site.footer_scripts %}
3
- {% if script contains "://" %}
4
- {% capture script_path %}{{ script }}{% endcapture %}
5
- {% else %}
6
- {% capture script_path %}{{ script | relative_url }}{% endcapture %}
7
- {% endif %}
8
- <script src="{{ script_path }}"></script>
9
- {% endfor %}
10
- {% else %}
11
- <script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
12
- <script src="https://use.fontawesome.com/releases/v5.1.0/js/all.js"></script>
13
- {% endif %}
14
-
15
- {% if site.search == true or page.layout == "search" %}
16
- {%- assign search_provider = site.search_provider | default: "lunr" -%}
17
- {%- case search_provider -%}
18
- {%- when "lunr" -%}
19
- {% include search/lunr-search-scripts.html %}
20
- {%- when "google" -%}
21
- {% include search/google-search-scripts.html %}
22
- {%- when "algolia" -%}
23
- {% include search/algolia-search-scripts.html %}
24
- {%- endcase -%}
25
- {% endif %}
26
-
27
- {% include analytics.html %}
28
- {% include /comments-providers/scripts.html %}
1
+ {% if site.footer_scripts %}
2
+ {% for script in site.footer_scripts %}
3
+ {% if script contains "://" %}
4
+ {% capture script_path %}{{ script }}{% endcapture %}
5
+ {% else %}
6
+ {% capture script_path %}{{ script | relative_url }}{% endcapture %}
7
+ {% endif %}
8
+ <script src="{{ script_path }}"></script>
9
+ {% endfor %}
10
+ {% else %}
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>
13
+ {% endif %}
14
+
15
+ {% if site.search == true or page.layout == "search" %}
16
+ {%- assign search_provider = site.search_provider | default: "lunr" -%}
17
+ {%- case search_provider -%}
18
+ {%- when "lunr" -%}
19
+ {% include search/lunr-search-scripts.html %}
20
+ {%- when "google" -%}
21
+ {% include search/google-search-scripts.html %}
22
+ {%- when "algolia" -%}
23
+ {% include search/algolia-search-scripts.html %}
24
+ {%- endcase -%}
25
+ {% endif %}
26
+
27
+ {% include analytics.html %}
28
+ {% include /comments-providers/scripts.html %}
@@ -1,18 +1,18 @@
1
- <div class="search-content__inner-wrap">
2
- {%- assign search_provider = site.search_provider | default: "lunr" -%}
3
- {%- case search_provider -%}
4
- {%- when "lunr" -%}
5
- <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...' }}" />
6
- <div id="results" class="results"></div>
7
- {%- when "google" -%}
8
- <form onsubmit="return executeQuery();" id="cse-search-box-form-id">
9
- <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...' }}" />
10
- </form>
11
- <div id="results" class="results">
12
- <gcse:searchresults-only></gcse:searchresults-only>
13
- </div>
14
- {%- when "algolia" -%}
15
- <div class="search-searchbar"></div>
16
- <div class="search-hits"></div>
17
- {%- endcase -%}
1
+ <div class="search-content__inner-wrap">
2
+ {%- assign search_provider = site.search_provider | default: "lunr" -%}
3
+ {%- case search_provider -%}
4
+ {%- when "lunr" -%}
5
+ <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...' }}" />
6
+ <div id="results" class="results"></div>
7
+ {%- when "google" -%}
8
+ <form onsubmit="return executeQuery();" id="cse-search-box-form-id">
9
+ <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...' }}" />
10
+ </form>
11
+ <div id="results" class="results">
12
+ <gcse:searchresults-only></gcse:searchresults-only>
13
+ </div>
14
+ {%- when "algolia" -%}
15
+ <div class="search-searchbar"></div>
16
+ <div class="search-hits"></div>
17
+ {%- endcase -%}
18
18
  </div>
data/_includes/seo.html CHANGED
@@ -1,164 +1,164 @@
1
- <!-- begin _includes/seo.html -->
2
- {%- if site.url -%}
3
- {%- assign seo_url = site.url | append: site.baseurl -%}
4
- {%- endif -%}
5
- {%- assign seo_url = seo_url | default: site.github.url -%}
6
-
7
- {% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %}
8
-
9
- {%- if page.title -%}
10
- {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
11
- {%- endif -%}
12
-
13
- {%- if seo_title -%}
14
- {%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%}
15
- {%- endif -%}
16
-
17
- {%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %}
18
-
19
- {%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
20
- {%- if seo_description -%}
21
- {%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
22
- {%- endif -%}
23
-
24
- {%- assign author = page.author | default: page.authors[0] | default: site:author -%}
25
- {%- assign author = site.data.authors[author] | default: author -%}
26
-
27
- {%- if author.twitter -%}
28
- {%- assign author_twitter = author.twitter | replace: "@", "" -%}
29
- {%- endif -%}
30
-
31
- {%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image -%}
32
- {%- unless page_large_image contains '://' -%}
33
- {%- assign page_large_image = page_large_image | absolute_url -%}
34
- {%- endunless -%}
35
- {%- assign page_large_image = page_large_image | escape -%}
36
-
37
- {%- assign page_teaser_image = page.header.teaser | default: site.og_image -%}
38
- {%- unless page_teaser_image contains '://' -%}
39
- {%- assign page_teaser_image = page_teaser_image | absolute_url -%}
40
- {%- endunless -%}
41
- {%- assign page_teaser_image = page_teaser_image | escape -%}
42
-
43
- {%- assign site_og_image = site.og_image -%}
44
- {%- unless site_og_image contains '://' -%}
45
- {%- assign site_og_image = site_og_image | absolute_url -%}
46
- {%- endunless -%}
47
- {%- assign site_og_image = site_og_image | escape -%}
48
-
49
- {%- if page.date -%}
50
- {%- assign og_type = "article" -%}
51
- {%- else -%}
52
- {%- assign og_type = "website" -%}
53
- {%- endif -%}
54
-
55
- <title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
56
- <meta name="description" content="{{ seo_description }}">
57
-
58
- {% if author.name %}
59
- <meta name="author" content="{{ author.name | default: author }}">
60
- {% endif %}
61
-
62
- <meta property="og:type" content="{{ og_type }}">
63
- <meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
64
- <meta property="og:site_name" content="{{ site.title }}">
65
- <meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
66
- <meta property="og:url" content="{{ canonical_url }}">
67
-
68
- {% if page.excerpt %}
69
- <meta property="og:description" content="{{ seo_description }}">
70
- {% endif %}
71
-
72
- {% if page_large_image %}
73
- <meta property="og:image" content="{{ page_large_image }}">
74
- {% elsif page_teaser_image %}
75
- <meta property="og:image" content="{{ page_teaser_image }}">
76
- {% endif %}
77
-
78
- {% if site.twitter.username %}
79
- <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
80
- <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
81
- <meta name="twitter:description" content="{{ seo_description }}">
82
- <meta name="twitter:url" content="{{ canonical_url }}">
83
-
84
- {% if page_large_image %}
85
- <meta name="twitter:card" content="summary_large_image">
86
- <meta name="twitter:image" content="{{ page_large_image }}">
87
- {% else %}
88
- <meta name="twitter:card" content="summary">
89
- {% if page_teaser_image %}
90
- <meta name="twitter:image" content="{{ page_teaser_image }}">
91
- {% endif %}
92
- {% endif %}
93
-
94
- {% if author_twitter %}
95
- <meta name="twitter:creator" content="@{{ author_twitter }}">
96
- {% endif %}
97
- {% endif %}
98
-
99
- {% if page.date %}
100
- <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
101
- {% endif %}
102
-
103
- {% if og_type == "article" and page.last_modified_at %}
104
- <meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}">
105
- {% endif %}
106
-
107
- {% if site.facebook %}
108
- {% if site.facebook.publisher %}
109
- <meta property="article:publisher" content="{{ site.facebook.publisher }}">
110
- {% endif %}
111
-
112
- {% if site.facebook.app_id %}
113
- <meta property="fb:app_id" content="{{ site.facebook.app_id }}">
114
- {% endif %}
115
- {% endif %}
116
-
117
- <link rel="canonical" href="{{ canonical_url }}">
118
-
119
- {% if paginator.previous_page %}
120
- <link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}">
121
- {% endif %}
122
- {% if paginator.next_page %}
123
- <link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
124
- {% endif %}
125
-
126
- {% if site.og_image %}
127
- <script type="application/ld+json">
128
- {
129
- "@context": "http://schema.org",
130
- "@type": "Organization",
131
- "url": {{ seo_url | jsonify }},
132
- "logo": {{ site_og_image | jsonify }}
133
- }
134
- </script>
135
- {% endif %}
136
-
137
- {% if site.social %}
138
- <script type="application/ld+json">
139
- {
140
- "@context": "http://schema.org",
141
- "@type": "{% if site.social.type %}{{ site.social.type }}{% else %}Person{% endif %}",
142
- "name": {{ site.social.name | default: site.name | jsonify }},
143
- "url": {{ seo_url | jsonify }},
144
- "sameAs": {{ site.social.links | jsonify }}
145
- }
146
- </script>
147
- {% endif %}
148
-
149
- {% if site.google_site_verification %}
150
- <meta name="google-site-verification" content="{{ site.google_site_verification }}" />
151
- {% endif %}
152
- {% if site.bing_site_verification %}
153
- <meta name="msvalidate.01" content="{{ site.bing_site_verification }}">
154
- {% endif %}
155
- {% if site.alexa_site_verification %}
156
- <meta name="alexaVerifyID" content="{{ site.alexa_site_verification }}">
157
- {% endif %}
158
- {% if site.yandex_site_verification %}
159
- <meta name="yandex-verification" content="{{ site.yandex_site_verification }}">
160
- {% endif %}
161
- {% if site.naver_site_verification %}
162
- <meta name="naver-site-verification" content="{{ site.naver_site_verification }}">
163
- {% endif %}
164
- <!-- end _includes/seo.html -->
1
+ <!-- begin _includes/seo.html -->
2
+ {%- if site.url -%}
3
+ {%- assign seo_url = site.url | append: site.baseurl -%}
4
+ {%- endif -%}
5
+ {%- assign seo_url = seo_url | default: site.github.url -%}
6
+
7
+ {% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %}
8
+
9
+ {%- if page.title -%}
10
+ {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
11
+ {%- endif -%}
12
+
13
+ {%- if seo_title -%}
14
+ {%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%}
15
+ {%- endif -%}
16
+
17
+ {%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %}
18
+
19
+ {%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
20
+ {%- if seo_description -%}
21
+ {%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
22
+ {%- endif -%}
23
+
24
+ {%- assign author = page.author | default: page.authors[0] | default: site:author -%}
25
+ {%- assign author = site.data.authors[author] | default: author -%}
26
+
27
+ {%- if author.twitter -%}
28
+ {%- assign author_twitter = author.twitter | replace: "@", "" -%}
29
+ {%- endif -%}
30
+
31
+ {%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image -%}
32
+ {%- unless page_large_image contains '://' -%}
33
+ {%- assign page_large_image = page_large_image | absolute_url -%}
34
+ {%- endunless -%}
35
+ {%- assign page_large_image = page_large_image | escape -%}
36
+
37
+ {%- assign page_teaser_image = page.header.teaser | default: site.og_image -%}
38
+ {%- unless page_teaser_image contains '://' -%}
39
+ {%- assign page_teaser_image = page_teaser_image | absolute_url -%}
40
+ {%- endunless -%}
41
+ {%- assign page_teaser_image = page_teaser_image | escape -%}
42
+
43
+ {%- assign site_og_image = site.og_image -%}
44
+ {%- unless site_og_image contains '://' -%}
45
+ {%- assign site_og_image = site_og_image | absolute_url -%}
46
+ {%- endunless -%}
47
+ {%- assign site_og_image = site_og_image | escape -%}
48
+
49
+ {%- if page.date -%}
50
+ {%- assign og_type = "article" -%}
51
+ {%- else -%}
52
+ {%- assign og_type = "website" -%}
53
+ {%- endif -%}
54
+
55
+ <title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
56
+ <meta name="description" content="{{ seo_description }}">
57
+
58
+ {% if author.name %}
59
+ <meta name="author" content="{{ author.name | default: author }}">
60
+ {% endif %}
61
+
62
+ <meta property="og:type" content="{{ og_type }}">
63
+ <meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
64
+ <meta property="og:site_name" content="{{ site.title }}">
65
+ <meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
66
+ <meta property="og:url" content="{{ canonical_url }}">
67
+
68
+ {% if page.excerpt %}
69
+ <meta property="og:description" content="{{ seo_description }}">
70
+ {% endif %}
71
+
72
+ {% if page_large_image %}
73
+ <meta property="og:image" content="{{ page_large_image }}">
74
+ {% elsif page_teaser_image %}
75
+ <meta property="og:image" content="{{ page_teaser_image }}">
76
+ {% endif %}
77
+
78
+ {% if site.twitter.username %}
79
+ <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
80
+ <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
81
+ <meta name="twitter:description" content="{{ seo_description }}">
82
+ <meta name="twitter:url" content="{{ canonical_url }}">
83
+
84
+ {% if page_large_image %}
85
+ <meta name="twitter:card" content="summary_large_image">
86
+ <meta name="twitter:image" content="{{ page_large_image }}">
87
+ {% else %}
88
+ <meta name="twitter:card" content="summary">
89
+ {% if page_teaser_image %}
90
+ <meta name="twitter:image" content="{{ page_teaser_image }}">
91
+ {% endif %}
92
+ {% endif %}
93
+
94
+ {% if author_twitter %}
95
+ <meta name="twitter:creator" content="@{{ author_twitter }}">
96
+ {% endif %}
97
+ {% endif %}
98
+
99
+ {% if page.date %}
100
+ <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
101
+ {% endif %}
102
+
103
+ {% if og_type == "article" and page.last_modified_at %}
104
+ <meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}">
105
+ {% endif %}
106
+
107
+ {% if site.facebook %}
108
+ {% if site.facebook.publisher %}
109
+ <meta property="article:publisher" content="{{ site.facebook.publisher }}">
110
+ {% endif %}
111
+
112
+ {% if site.facebook.app_id %}
113
+ <meta property="fb:app_id" content="{{ site.facebook.app_id }}">
114
+ {% endif %}
115
+ {% endif %}
116
+
117
+ <link rel="canonical" href="{{ canonical_url }}">
118
+
119
+ {% if paginator.previous_page %}
120
+ <link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}">
121
+ {% endif %}
122
+ {% if paginator.next_page %}
123
+ <link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
124
+ {% endif %}
125
+
126
+ {% if site.og_image %}
127
+ <script type="application/ld+json">
128
+ {
129
+ "@context": "http://schema.org",
130
+ "@type": "Organization",
131
+ "url": {{ seo_url | jsonify }},
132
+ "logo": {{ site_og_image | jsonify }}
133
+ }
134
+ </script>
135
+ {% endif %}
136
+
137
+ {% if site.social %}
138
+ <script type="application/ld+json">
139
+ {
140
+ "@context": "http://schema.org",
141
+ "@type": "{% if site.social.type %}{{ site.social.type }}{% else %}Person{% endif %}",
142
+ "name": {{ site.social.name | default: site.name | jsonify }},
143
+ "url": {{ seo_url | jsonify }},
144
+ "sameAs": {{ site.social.links | jsonify }}
145
+ }
146
+ </script>
147
+ {% endif %}
148
+
149
+ {% if site.google_site_verification %}
150
+ <meta name="google-site-verification" content="{{ site.google_site_verification }}" />
151
+ {% endif %}
152
+ {% if site.bing_site_verification %}
153
+ <meta name="msvalidate.01" content="{{ site.bing_site_verification }}">
154
+ {% endif %}
155
+ {% if site.alexa_site_verification %}
156
+ <meta name="alexaVerifyID" content="{{ site.alexa_site_verification }}">
157
+ {% endif %}
158
+ {% if site.yandex_site_verification %}
159
+ <meta name="yandex-verification" content="{{ site.yandex_site_verification }}">
160
+ {% endif %}
161
+ {% if site.naver_site_verification %}
162
+ <meta name="naver-site-verification" content="{{ site.naver_site_verification }}">
163
+ {% endif %}
164
+ <!-- end _includes/seo.html -->
@@ -3,7 +3,7 @@
3
3
 
4
4
  <!doctype html>
5
5
  <!--
6
- Minimal Mistakes Jekyll Theme 4.12.0 by Michael Rose
6
+ Minimal Mistakes Jekyll Theme 4.12.1 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
data/_layouts/posts.html CHANGED
@@ -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 %}