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.
@@ -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 %}
@@ -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.12/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 "algolia" -%}
21
- {% include search/algolia-search-scripts.html %}
22
- {%- endcase -%}
23
- {% endif %}
24
-
25
- {% include analytics.html %}
26
- {% 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.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 "algolia" -%}
8
- <div class="search-searchbar"></div>
9
- <div class="search-hits"></div>
10
- {%- 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 -%}
11
18
  </div>
@@ -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
- {% if site.title_separator %}
8
- {% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %}
9
- {% endif %}
10
-
11
- {%- if page.title -%}
12
- {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
13
- {%- endif -%}
14
-
15
- {%- if seo_title -%}
16
- {%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%}
17
- {%- endif -%}
18
-
19
- {%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %}
20
-
21
- {%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
22
- {%- if seo_description -%}
23
- {%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
24
- {%- endif -%}
25
-
26
- {%- assign author = page.author | default: page.authors[0] | default: site:author -%}
27
- {%- assign author = site.data.authors[author] | default: author -%}
28
-
29
- {%- if author.twitter -%}
30
- {%- assign author_twitter = author.twitter | replace: "@", "" -%}
31
- {%- endif -%}
32
-
33
- {%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image -%}
34
- {%- unless page_large_image contains '://' -%}
35
- {%- assign page_large_image = page_large_image | absolute_url -%}
36
- {%- endunless -%}
37
- {%- assign page_large_image = page_large_image | escape -%}
38
-
39
- {%- assign page_teaser_image = page.header.teaser | default: site.og_image -%}
40
- {%- unless page_teaser_image contains '://' -%}
41
- {%- assign page_teaser_image = page_teaser_image | absolute_url -%}
42
- {%- endunless -%}
43
- {%- assign page_teaser_image = page_teaser_image | escape -%}
44
-
45
- {%- assign site_og_image = site.og_image -%}
46
- {%- unless site_og_image contains '://' -%}
47
- {%- assign site_og_image = site_og_image | absolute_url -%}
48
- {%- endunless -%}
49
- {%- assign site_og_image = site_og_image | escape -%}
50
-
51
- {%- if page.date -%}
52
- {%- assign og_type = "article" -%}
53
- {%- else -%}
54
- {%- assign og_type = "website" -%}
55
- {%- endif -%}
56
-
57
- <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>
58
- <meta name="description" content="{{ seo_description }}">
59
-
60
- {% if author.name %}
61
- <meta name="author" content="{{ author.name | default: author }}">
62
- {% endif %}
63
-
64
- <meta property="og:type" content="{{ og_type }}">
65
- <meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
66
- <meta property="og:site_name" content="{{ site.title }}">
67
- <meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
68
- <meta property="og:url" content="{{ canonical_url }}">
69
-
70
- {% if page.excerpt %}
71
- <meta property="og:description" content="{{ seo_description }}">
72
- {% endif %}
73
-
74
- {% if page_large_image %}
75
- <meta property="og:image" content="{{ page_large_image }}">
76
- {% elsif page_teaser_image %}
77
- <meta property="og:image" content="{{ page_teaser_image }}">
78
- {% endif %}
79
-
80
- {% if site.twitter.username %}
81
- <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
82
- <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
83
- <meta name="twitter:description" content="{{ seo_description }}">
84
- <meta name="twitter:url" content="{{ canonical_url }}">
85
-
86
- {% if page_large_image %}
87
- <meta name="twitter:card" content="summary_large_image">
88
- <meta name="twitter:image" content="{{ page_large_image }}">
89
- {% else %}
90
- <meta name="twitter:card" content="summary">
91
- {% if page_teaser_image %}
92
- <meta name="twitter:image" content="{{ page_teaser_image }}">
93
- {% endif %}
94
- {% endif %}
95
-
96
- {% if author_twitter %}
97
- <meta name="twitter:creator" content="@{{ author_twitter }}">
98
- {% endif %}
99
- {% endif %}
100
-
101
- {% if page.date %}
102
- <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
103
- {% endif %}
104
-
105
- {% if og_type == "article" and page.last_modified_at %}
106
- <meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}">
107
- {% endif %}
108
-
109
- {% if site.facebook %}
110
- {% if site.facebook.publisher %}
111
- <meta property="article:publisher" content="{{ site.facebook.publisher }}">
112
- {% endif %}
113
-
114
- {% if site.facebook.app_id %}
115
- <meta property="fb:app_id" content="{{ site.facebook.app_id }}">
116
- {% endif %}
117
- {% endif %}
118
-
119
- <link rel="canonical" href="{{ canonical_url }}">
120
-
121
- {% if paginator.previous_page %}
122
- <link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}">
123
- {% endif %}
124
- {% if paginator.next_page %}
125
- <link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
126
- {% endif %}
127
-
128
- {% if site.og_image %}
129
- <script type="application/ld+json">
130
- {
131
- "@context": "http://schema.org",
132
- "@type": "Organization",
133
- "url": {{ seo_url | jsonify }},
134
- "logo": {{ site_og_image | jsonify }}
135
- }
136
- </script>
137
- {% endif %}
138
-
139
- {% if site.social %}
140
- <script type="application/ld+json">
141
- {
142
- "@context": "http://schema.org",
143
- "@type": "{% if site.social.type %}{{ site.social.type }}{% else %}Person{% endif %}",
144
- "name": {{ site.social.name | default: site.name | jsonify }},
145
- "url": {{ seo_url | jsonify }},
146
- "sameAs": {{ site.social.links | jsonify }}
147
- }
148
- </script>
149
- {% endif %}
150
-
151
- {% if site.google_site_verification %}
152
- <meta name="google-site-verification" content="{{ site.google_site_verification }}" />
153
- {% endif %}
154
- {% if site.bing_site_verification %}
155
- <meta name="msvalidate.01" content="{{ site.bing_site_verification }}">
156
- {% endif %}
157
- {% if site.alexa_site_verification %}
158
- <meta name="alexaVerifyID" content="{{ site.alexa_site_verification }}">
159
- {% endif %}
160
- {% if site.yandex_site_verification %}
161
- <meta name="yandex-verification" content="{{ site.yandex_site_verification }}">
162
- {% endif %}
163
- {% if site.naver-site-verification %}
164
- <meta name="naver-site-verification" content="{{ site.naver-site-verification }}">
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: '|', '&#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 -->