minimal-mistakes-jekyll 4.11.2 → 4.12.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +1 -1
- data/_data/ui-text.yml +1080 -1034
- data/_includes/analytics-providers/google-gtag.html +9 -9
- data/_includes/analytics-providers/google-universal.html +10 -10
- data/_includes/analytics-providers/google.html +13 -13
- data/_includes/analytics.html +13 -13
- data/_includes/comments.html +170 -170
- data/_includes/feature_row +3 -0
- data/_includes/page__hero.html +1 -1
- data/_includes/scripts.html +28 -26
- data/_includes/search/google-search-scripts.html +30 -0
- data/_includes/search/search_form.html +17 -10
- data/_includes/seo.html +164 -166
- data/_layouts/categories.html +7 -13
- data/_layouts/default.html +1 -1
- data/_layouts/posts.html +29 -29
- data/_layouts/search.html +7 -0
- data/_layouts/single.html +1 -1
- data/_layouts/splash.html +21 -21
- data/_layouts/tags.html +42 -48
- data/_sass/minimal-mistakes.scss +1 -1
- data/_sass/minimal-mistakes/_archive.scss +27 -0
- data/_sass/minimal-mistakes/_footer.scss +91 -85
- data/_sass/minimal-mistakes/_navigation.scss +0 -6
- data/_sass/minimal-mistakes/_sidebar.scss +13 -0
- data/_sass/minimal-mistakes/_utilities.scss +524 -520
- data/_sass/minimal-mistakes/_variables.scss +154 -153
- data/assets/js/main.min.js +5 -5
- metadata +4 -3
data/_includes/page__hero.html
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
>
|
36
36
|
{% if page.header.overlay_color or page.header.overlay_image %}
|
37
37
|
<div class="wrapper">
|
38
|
-
<h1 class="page__title" itemprop="headline">
|
38
|
+
<h1 id="page-title" class="page__title" itemprop="headline">
|
39
39
|
{% if paginator and site.paginate_show_page_num %}
|
40
40
|
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
|
41
41
|
{% else %}
|
data/_includes/scripts.html
CHANGED
@@ -1,26 +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.0
|
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 "
|
21
|
-
{% include search/
|
22
|
-
|
23
|
-
{%
|
24
|
-
|
25
|
-
{%
|
26
|
-
|
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 %}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<script>
|
2
|
+
(function () {
|
3
|
+
var cx = '{{ site.google.search_engine_id }}';
|
4
|
+
var gcse = document.createElement('script');
|
5
|
+
gcse.type = 'text/javascript';
|
6
|
+
gcse.async = true;
|
7
|
+
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
|
8
|
+
var s = document.getElementsByTagName('script')[0];
|
9
|
+
s.parentNode.insertBefore(gcse, s);
|
10
|
+
})();
|
11
|
+
|
12
|
+
function googleCustomSearchExecute() {
|
13
|
+
var input = document.getElementById('cse-search-input-box-id');
|
14
|
+
var element = google.search.cse.element.getElement('searchresults-only0');
|
15
|
+
if (input.value == '') {
|
16
|
+
element.clearAllResults();
|
17
|
+
} else {
|
18
|
+
element.execute(input.value);
|
19
|
+
}
|
20
|
+
return false;
|
21
|
+
}
|
22
|
+
|
23
|
+
{% if site.google.instant_search %}
|
24
|
+
$(document).ready(function () {
|
25
|
+
$('input#cse-search-input-box-id').on('keyup', function () {
|
26
|
+
googleCustomSearchExecute();
|
27
|
+
});
|
28
|
+
});
|
29
|
+
{% endif %}
|
30
|
+
</script>
|
@@ -1,11 +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 "
|
8
|
-
<
|
9
|
-
<
|
10
|
-
|
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 -%}
|
11
18
|
</div>
|
data/_includes/seo.html
CHANGED
@@ -1,166 +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
|
-
{%
|
8
|
-
|
9
|
-
{
|
10
|
-
|
11
|
-
{%-
|
12
|
-
|
13
|
-
{%-
|
14
|
-
|
15
|
-
{%-
|
16
|
-
|
17
|
-
{%-
|
18
|
-
|
19
|
-
{%- assign
|
20
|
-
|
21
|
-
{%- assign seo_description =
|
22
|
-
{%-
|
23
|
-
|
24
|
-
{%-
|
25
|
-
|
26
|
-
|
27
|
-
{%-
|
28
|
-
|
29
|
-
{%-
|
30
|
-
|
31
|
-
{%-
|
32
|
-
|
33
|
-
{%- assign page_large_image =
|
34
|
-
{%-
|
35
|
-
|
36
|
-
|
37
|
-
{%- assign
|
38
|
-
|
39
|
-
{%- assign page_teaser_image =
|
40
|
-
{%-
|
41
|
-
|
42
|
-
|
43
|
-
{%- assign
|
44
|
-
|
45
|
-
{%- assign site_og_image =
|
46
|
-
{%-
|
47
|
-
|
48
|
-
|
49
|
-
{%-
|
50
|
-
|
51
|
-
{%-
|
52
|
-
{%- assign og_type = "
|
53
|
-
{%-
|
54
|
-
|
55
|
-
{
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
{%
|
61
|
-
|
62
|
-
{
|
63
|
-
|
64
|
-
<meta property="og:
|
65
|
-
<meta property="og:
|
66
|
-
<meta property="og:
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
{%
|
71
|
-
|
72
|
-
{%
|
73
|
-
|
74
|
-
{%
|
75
|
-
<meta property="og:image" content="{{
|
76
|
-
{%
|
77
|
-
|
78
|
-
{%
|
79
|
-
|
80
|
-
{
|
81
|
-
<meta name="twitter:
|
82
|
-
<meta name="twitter:
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
<meta name="twitter:
|
89
|
-
|
90
|
-
|
91
|
-
{%
|
92
|
-
|
93
|
-
|
94
|
-
{%
|
95
|
-
|
96
|
-
{%
|
97
|
-
|
98
|
-
|
99
|
-
{%
|
100
|
-
|
101
|
-
{%
|
102
|
-
|
103
|
-
{%
|
104
|
-
|
105
|
-
{%
|
106
|
-
|
107
|
-
{%
|
108
|
-
|
109
|
-
{
|
110
|
-
{%
|
111
|
-
|
112
|
-
{%
|
113
|
-
|
114
|
-
{%
|
115
|
-
|
116
|
-
|
117
|
-
{
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
{%
|
122
|
-
|
123
|
-
{
|
124
|
-
{%
|
125
|
-
|
126
|
-
{%
|
127
|
-
|
128
|
-
{
|
129
|
-
|
130
|
-
|
131
|
-
"
|
132
|
-
"
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
{%
|
138
|
-
|
139
|
-
{
|
140
|
-
|
141
|
-
|
142
|
-
"
|
143
|
-
"
|
144
|
-
"
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
{%
|
150
|
-
|
151
|
-
{%
|
152
|
-
|
153
|
-
{
|
154
|
-
{%
|
155
|
-
|
156
|
-
{
|
157
|
-
{%
|
158
|
-
|
159
|
-
{
|
160
|
-
{%
|
161
|
-
|
162
|
-
{
|
163
|
-
{%
|
164
|
-
|
165
|
-
{% endif %}
|
166
|
-
<!-- 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: '|', '|' %}
|
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 -->
|