minimal-mistakes-jekyll 4.23.0 → 4.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7ed3d0e0a47026c7ee8ef9b46685765ac4babcb1e69906e7afaaabb7ae7edb6
4
- data.tar.gz: 432baf028b2f79c7e80d41c9ed78692de06147fc6530005e73395ad59b976f50
3
+ metadata.gz: '0039e789808d39d6e0f773f9868fe92214c2ac5cbc30170fa5fb5b20daf265a9'
4
+ data.tar.gz: c3c13da75f32bcc53d3667226da5372825e069d04e1325916e26f90c08386903
5
5
  SHA512:
6
- metadata.gz: 54a626e04b0c28bfa8c0226c76a6543bb5a0691fbb12e8c0731c35ec3dab2749837dad61c64f1a209da3cdd79c3ce52aa2715b2ef0e112593b4417513946ef26
7
- data.tar.gz: 03a121008c563ed5e0c62737453b4f69fdee7f036d1da3fcb2355af43e7839eb236b80545a520c1bd6df308ff120d002f680afb1dda1e8d72f4080fb7dddf0ca
6
+ metadata.gz: 32549e685d544bef7d10ea35e8c529abad31015f59af3c08700e29c6fb546dd9940518c382a3a0278708f872781a811d9439262eeb5d3cf3349e95ffa40c8a2f
7
+ data.tar.gz: f454c3810a44598424e5966a267e06b3ebfa02a465d55b31cc604973d1d2b23ee3c673f66f5f0a0582b3038aa0ac2633f264a102a2e0bda2778e2582f783f7b9
data/CHANGELOG.md CHANGED
@@ -1,4 +1,21 @@
1
- ## Unreleased
1
+ ## [4.24.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.24.0)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Fix README text for Gumshoejs license. [#3024](https://github.com/mmistakes/minimal-mistakes/pull/3024)
6
+ - Remove `tabindex="-1"` from `input` elements in `search.html` layout to allow them to be accessible by keyboard. [#2982](https://github.com/mmistakes/minimal-mistakes/issues/2982)
7
+ - Fix broken sidebar image in sample post. [#3013](https://github.com/mmistakes/minimal-mistakes/issues/3013)
8
+ - Fix broken links in Upgrading documentation. [#3004](https://github.com/mmistakes/minimal-mistakes/issues/3004)
9
+
10
+ ### Enhancements
11
+
12
+ - Remove IE9 flexbox fallback. [#3042](https://github.com/mmistakes/minimal-mistakes/pull/3042)
13
+ - Remove `h2` from skip links navigation as it is not important for site structure. [#3012](https://github.com/mmistakes/minimal-mistakes/pull/3012)
14
+ - Loads Font Awesome asynchronously. [#2967](https://github.com/mmistakes/minimal-mistakes/pull/2967)
15
+ - Replace custom search icon SVG with Font Awesome icon. [#2774](https://github.com/mmistakes/minimal-mistakes/pull/2774)
16
+ - Adds support for giscus comments. [#3022](https://github.com/mmistakes/minimal-mistakes/pull/3022)
17
+
18
+ ## [4.23.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.23.0)
2
19
 
3
20
  ### Enhancements
4
21
 
data/README.md CHANGED
@@ -4,14 +4,16 @@
4
4
  [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.7-blue.svg)](https://jekyllrb.com/)
5
5
  [![Ruby gem](https://img.shields.io/gem/v/minimal-mistakes-jekyll.svg)](https://rubygems.org/gems/minimal-mistakes-jekyll)
6
6
  [![Tip Me via PayPal](https://img.shields.io/badge/PayPal-tip%20me-green.svg?logo=paypal)](https://www.paypal.me/mmistakes)
7
+ [![Donate to this project using Buy Me A Coffee](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg)](https://www.buymeacoffee.com/mmistakes)
7
8
 
8
9
  Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building personal sites, blogs, and portfolios. As the name implies, styling is purposely minimalistic to be enhanced and customized by you :smile:.
9
10
 
10
11
  :sparkles: See what's new in the [CHANGELOG](CHANGELOG.md).
11
12
 
12
- **If you enjoy this theme, please consider [supporting me](https://www.paypal.me/mmistakes) to continue developing and maintaining it.**
13
+ **If you enjoy this theme, please consider sponsoring:**
13
14
 
14
- [![Support via PayPal](https://cdn.jsdelivr.net/gh/twolfson/paypal-github-button@1.0.0/dist/button.svg)](https://www.paypal.me/mmistakes)
15
+ [!["Buy Me A Coffee"](https://user-images.githubusercontent.com/1376749/120938564-50c59780-c6e1-11eb-814f-22a0399623c5.png)](https://www.buymeacoffee.com/mmistakes)
16
+ [![Support via PayPal](https://cdn.jsdelivr.net/gh/twolfson/paypal-github-button@1.0.0/dist/button.svg)](https://www.paypal.me/mmistakes)
15
17
 
16
18
  **Note:** The theme uses the [jekyll-include-cache](https://github.com/benbalter/jekyll-include-cache) plugin which will need to be installed in your `Gemfile` and added to the `plugins` array of `_config.yml`. Otherwise you'll encounter `Unknown tag 'include_cached'` errors at build.
17
19
 
@@ -31,7 +33,7 @@ Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building per
31
33
  - Several responsive layout options (single, archive index, search, splash, and paginated home page).
32
34
  - Optimized for search engines with support for [Twitter Cards](https://dev.twitter.com/cards/overview) and [Open Graph](http://ogp.me/) data.
33
35
  - Optional [header images](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers), [custom sidebars](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars), [table of contents](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents), [galleries](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery), related posts, [breadcrumb links](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta), [navigation lists](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list), and more.
34
- - Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), Google+, [Discourse](https://www.discourse.org/), static-based via [Staticman](https://staticman.net/), and [utterances](https://utteranc.es/)).
36
+ - Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), Google+, [Discourse](https://www.discourse.org/), static-based via [Staticman](https://staticman.net/), [utterances](https://utteranc.es/), and [giscus](https://giscus.app/)).
35
37
  - [Google Analytics](https://www.google.com/analytics/) support.
36
38
  - UI localized text in English (default), Arabic (عربي), Brazilian Portuguese (Português brasileiro), Catalan, Chinese, Danish, Dutch, Finnish, French (Français), German (Deutsch), Greek, Hebrew, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), and Vietnamese.
37
39
 
@@ -127,7 +129,7 @@ To install:
127
129
  bundle
128
130
  ```
129
131
 
130
- 4. Add `remote_theme: "mmistakes/minimal-mistakes@4.23.0"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
132
+ 4. Add `remote_theme: "mmistakes/minimal-mistakes@4.24.0"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
131
133
 
132
134
  **Looking for an example?** Use the [Minimal Mistakes remote theme starter](https://github.com/mmistakes/mm-github-pages-starter/generate) for the quickest method of getting a GitHub Pages hosted site up and running. Generate a new repository from the starter, replace sample content with your own, and configure as needed.
133
135
 
@@ -249,7 +251,7 @@ Smooth Scroll is distributed under the terms of the [MIT License](http://opensou
249
251
 
250
252
  Minimal Mistakes incorporates [Gumshoejs](http://github.com/cferdinandi/gumshoe),
251
253
  Copyright (c) 2019 Chris Ferdinandi.
252
- Smooth Scroll is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
254
+ Gumshoejs is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
253
255
 
254
256
  Minimal Mistakes incorporates [jQuery throttle / debounce](http://benalman.com/projects/jquery-throttle-debounce-plugin/),
255
257
  Copyright (c) 2010 "Cowboy" Ben Alman.
@@ -0,0 +1,24 @@
1
+ <script>
2
+ 'use strict';
3
+
4
+ (function () {
5
+ var commentContainer = document.querySelector('#giscus-comments');
6
+
7
+ if (!commentContainer) {
8
+ return;
9
+ }
10
+
11
+ var script = document.createElement('script');
12
+ script.setAttribute('src', 'https://giscus.app/client.js');
13
+ script.setAttribute('data-repo', '{{ site.repository | downcase }}');
14
+ script.setAttribute('data-repo-id', '{{ site.comments.giscus.repo_id }}');
15
+ script.setAttribute('data-category', '{{ site.comments.giscus.category_name }}');
16
+ script.setAttribute('data-category-id', '{{ site.comments.giscus.category_id }}');
17
+ script.setAttribute('data-mapping', '{{ site.comments.giscus.discussion_term | default: "pathname" }}');
18
+ script.setAttribute('data-reactions-enabled', '{{ site.comments.giscus.reactions_enabled | default: 1 }}');
19
+ script.setAttribute('data-theme', '{{ site.comments.giscus.theme | default: "light" }}');
20
+ script.setAttribute('crossorigin', 'anonymous');
21
+
22
+ commentContainer.appendChild(script);
23
+ })();
24
+ </script>
@@ -12,6 +12,8 @@
12
12
  {% include /comments-providers/staticman_v2.html %}
13
13
  {% when "utterances" %}
14
14
  {% include /comments-providers/utterances.html %}
15
+ {% when "giscus" %}
16
+ {% include /comments-providers/giscus.html %}
15
17
  {% when "custom" %}
16
18
  {% include /comments-providers/custom_scripts.html %}
17
19
  {% endcase %}
@@ -153,6 +153,9 @@
153
153
  {% when "utterances" %}
154
154
  <h4 class="page__comments-title">{{ comments_label }}</h4>
155
155
  <section id="utterances-comments"></section>
156
+ {% when "giscus" %}
157
+ <h4 class="page__comments-title">{{ comments_label }}</h4>
158
+ <section id="giscus-comments"></section>
156
159
  {% when "custom" %}
157
160
  {% include /comments-providers/custom.html %}
158
161
  {% endcase %}
data/_includes/head.html CHANGED
@@ -15,25 +15,11 @@
15
15
 
16
16
  <!-- For all browsers -->
17
17
  <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
18
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
19
-
20
- <!--[if IE]>
21
- <style>
22
- /* old IE unsupported flexbox fixes */
23
- .greedy-nav .site-title {
24
- padding-right: 3em;
25
- }
26
- .greedy-nav button {
27
- position: absolute;
28
- top: 0;
29
- right: 0;
30
- height: 100%;
31
- }
32
- </style>
33
- <![endif]-->
18
+ <link rel="preload" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
19
+ <noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css"></noscript>
34
20
 
35
21
  {% if site.head_scripts %}
36
22
  {% for script in site.head_scripts %}
37
23
  <script src="{{ script | relative_url }}"></script>
38
24
  {% endfor %}
39
- {% endif %}
25
+ {% endif %}
@@ -21,9 +21,7 @@
21
21
  {% if site.search == true %}
22
22
  <button class="search__toggle" type="button">
23
23
  <span class="visually-hidden">{{ site.data.ui-text[site.locale].search_label | default: "Toggle search" }}</span>
24
- <svg class="icon" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.99 16">
25
- <path d="M15.5,13.12L13.19,10.8a1.69,1.69,0,0,0-1.28-.55l-0.06-.06A6.5,6.5,0,0,0,5.77,0,6.5,6.5,0,0,0,2.46,11.59a6.47,6.47,0,0,0,7.74.26l0.05,0.05a1.65,1.65,0,0,0,.5,1.24l2.38,2.38A1.68,1.68,0,0,0,15.5,13.12ZM6.4,2A4.41,4.41,0,1,1,2,6.4,4.43,4.43,0,0,1,6.4,2Z" transform="translate(-.01)"></path>
26
- </svg>
24
+ <i class="fas fa-search"></i>
27
25
  </button>
28
26
  {% endif %}
29
27
  <button class="greedy-nav__toggle hidden" type="button">
@@ -1,5 +1,4 @@
1
1
  <nav class="skip-links">
2
- <h2 class="screen-reader-text">{{ site.data.ui-text[site.locale].skip_links | default: 'Skip links' }}</h2>
3
2
  <ul>
4
3
  <li><a href="#site-nav" class="screen-reader-shortcut">{{ site.data.ui-text[site.locale].skip_primary_nav | default: 'Skip to primary navigation' }}</a></li>
5
4
  <li><a href="#main" class="screen-reader-shortcut">{{ site.data.ui-text[site.locale].skip_content | default: 'Skip to content' }}</a></li>
@@ -3,7 +3,7 @@
3
3
 
4
4
  <!doctype html>
5
5
  <!--
6
- Minimal Mistakes Jekyll Theme 4.23.0 by Michael Rose
6
+ Minimal Mistakes Jekyll Theme 4.24.0 by Michael Rose
7
7
  Copyright 2013-2020 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
data/_layouts/search.html CHANGED
@@ -25,11 +25,11 @@ layout: default
25
25
  {%- assign search_provider = site.search_provider | default: "lunr" -%}
26
26
  {%- case search_provider -%}
27
27
  {%- when "lunr" -%}
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...' }}" />
28
+ <input type="text" id="search" class="search-input" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
29
29
  <div id="results" class="results"></div>
30
30
  {%- when "google" -%}
31
31
  <form onsubmit="return googleCustomSearchExecute();" 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...' }}" />
32
+ <input type="text" id="cse-search-input-box-id" class="search-input" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
33
33
  </form>
34
34
  <div id="results" class="results">
35
35
  <gcse:searchresults-only></gcse:searchresults-only>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Minimal Mistakes Jekyll Theme 4.23.0 by Michael Rose
2
+ * Minimal Mistakes Jekyll Theme 4.24.0 by Michael Rose
3
3
  * Copyright 2013-2020 Michael Rose - mademistakes.com | @mmistakes
4
4
  * Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Minimal Mistakes Jekyll Theme 4.23.0 by Michael Rose
2
+ * Minimal Mistakes Jekyll Theme 4.24.0 by Michael Rose
3
3
  * Copyright 2013-2021 Michael Rose - mademistakes.com | @mmistakes
4
4
  * Licensed under MIT
5
5
  */
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal-mistakes-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.23.0
4
+ version: 4.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-14 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -156,6 +156,7 @@ files:
156
156
  - _includes/comments-providers/discourse.html
157
157
  - _includes/comments-providers/disqus.html
158
158
  - _includes/comments-providers/facebook.html
159
+ - _includes/comments-providers/giscus.html
159
160
  - _includes/comments-providers/scripts.html
160
161
  - _includes/comments-providers/staticman.html
161
162
  - _includes/comments-providers/staticman_v2.html