minimal-mistakes-jekyll 4.25.0 → 4.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +38 -10
- data/README.md +1 -1
- data/_data/ui-text.yml +52 -0
- data/_includes/after-content.html +0 -0
- data/_includes/before-related.html +0 -0
- data/_includes/comments-providers/giscus.html +11 -1
- data/_includes/copyright.html +1 -1
- data/_includes/copyright.js +1 -1
- data/_includes/head.html +1 -1
- data/_includes/page__related.html +15 -0
- data/_includes/toc.html +13 -6
- data/_layouts/default.html +1 -1
- data/_layouts/single.html +2 -19
- data/_sass/minimal-mistakes/_copyright.scss +1 -1
- data/assets/js/lunr/lunr-store.js +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 271061b762aa34dc69b61f9a219cddd6b8fde0c68db47727b13e4561a103678e
|
4
|
+
data.tar.gz: 4ab5c518e35b8de208518667e9595adfa1028fd9f2ef413848ff0281351233cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 426981215c4150bcae0bdc93172dcaa088ad9ce693f255e66112ac261213c962904b1c633483ed9caa2ef4e57aebeaf264cab9fe44a4a3f1e369a97fc43783cd
|
7
|
+
data.tar.gz: eec79063d95fbf80a4e50d863a123a10514b4caefd6fc7257179ee5460ab6e3bef03a4af7ffe922f23890f2946ebc99c1b10ab2ab3e58c219bec2ce3ce1efcd5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.25.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.25.1)
|
4
|
+
|
5
|
+
### Bug Fixes
|
6
|
+
|
7
|
+
- "You may also enjoy" no longer recommends hidden posts. [#4653](https://github.com/mmistakes/minimal-mistakes/issues/4653)
|
8
|
+
- Replaced dead link to "Viewport and Media Queries" slides. [#4421](https://github.com/mmistakes/minimal-mistakes/discussions/4421)
|
9
|
+
- Fix broken `where_exp` in `lunr-store.js` for Jekyll < 4.0. [#4808](https://github.com/mmistakes/minimal-mistakes/issues/4808)
|
10
|
+
|
11
|
+
### Enhancements
|
12
|
+
|
13
|
+
- Add Ukrainian translations. [#4273](https://github.com/mmistakes/minimal-mistakes/pull/4273)
|
14
|
+
- Add more configuration for Giscus. [#4274](https://github.com/mmistakes/minimal-mistakes/pull/4274)
|
15
|
+
- Bump jekyll-toc to [v1.2.1](https://github.com/allejo/jekyll-toc/releases/tag/v1.2.1).
|
16
|
+
|
17
|
+
### Documentation & Maintenance
|
18
|
+
|
19
|
+
- Bump shell-quote from 1.7.1 to 1.7.3 [#3692](https://github.com/mmistakes/minimal-mistakes/issues/3692)
|
20
|
+
- Add `after-content.html` and `before-related.html` includes to ease docs site overrides.
|
21
|
+
- GitHub Workflows security hardening [#3884](https://github.com/mmistakes/minimal-mistakes/issues/3884)
|
22
|
+
- Replace Font Awesome v5 search page with v6.
|
23
|
+
- Try adding an FAQ page.
|
24
|
+
- Update remote theme reference in Quick-Start Guide to point to 4.25.0. [#4809](https://github.com/mmistakes/minimal-mistakes/issues/4809)
|
25
|
+
|
3
26
|
## [4.25.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.25.0)
|
4
27
|
|
5
28
|
### Bug Fixes
|
@@ -10,14 +33,9 @@
|
|
10
33
|
- Remove JS and other files from search index [#4000](https://github.com/mmistakes/minimal-mistakes/pull/4000)
|
11
34
|
- Fix unlisted YouTube video embeds in documentation/test sites. [#3649](https://github.com/mmistakes/minimal-mistakes/issues/3649)
|
12
35
|
- Fix error in Algolia search script when returning a hit that without `html` and `hightlight.html`. [#3101](https://github.com/mmistakes/minimal-mistakes/issues/3101) [#3102](https://github.com/mmistakes/minimal-mistakes/pull/3102)
|
13
|
-
- Fix links to Font Awesome gallery. [#3599](https://github.com/mmistakes/minimal-mistakes/pull/3599)
|
14
|
-
- Fix GreedyNav.js attribution link. [#3553](https://github.com/mmistakes/minimal-mistakes/pull/3553)
|
15
|
-
- Fix typo about loading JavaScript in layout documentation. [#3350](https://github.com/mmistakes/minimal-mistakes/pull/3350)
|
16
36
|
- Fix inline code style not applied to stylized text. [#3253](https://github.com/mmistakes/minimal-mistakes/pull/3253)
|
17
|
-
- Fix documentation typos. [#3232](https://github.com/mmistakes/minimal-mistakes/pull/3232) [#3318](https://github.com/mmistakes/minimal-mistakes/pull/3318)
|
18
37
|
- Fix Keybase icon in author sidebar. [#3221](https://github.com/mmistakes/minimal-mistakes/pull/3221)
|
19
38
|
- Fix sort order of Staticman comments when data files aren't named alphabetically. [#3184](https://github.com/mmistakes/minimal-mistakes/pull/3184)
|
20
|
-
- Fix broken documentation link and add Baidu site verification to `_config.yml` files. [#3139](https://github.com/mmistakes/minimal-mistakes/pull/3139)
|
21
39
|
- Fix `layout: compress` issue with HTML comment in video include. [#3117](https://github.com/mmistakes/minimal-mistakes/pull/3117)
|
22
40
|
- Add Magnific Popup class to anchors that only contain an `img` element. [#3111](https://github.com/mmistakes/minimal-mistakes/issues/3111) [#3114](https://github.com/mmistakes/minimal-mistakes/pull/3114)
|
23
41
|
- Fix heading level of related posts section from `h4` to `h2` to improve accessibility and SEO. [#3064](https://github.com/mmistakes/minimal-mistakes/pull/3064)
|
@@ -26,10 +44,10 @@
|
|
26
44
|
|
27
45
|
### Enhancements
|
28
46
|
|
29
|
-
- Add site.copyright and site.copyright_url config options [#4313](https://github.com/mmistakes/minimal-mistakes/pull/4313)
|
47
|
+
- Add `site.copyright` and `site.copyright_url` config options [#4313](https://github.com/mmistakes/minimal-mistakes/pull/4313)
|
30
48
|
- Lazy-load InstantSearch scripts and stylesheets [#3691](https://github.com/mmistakes/minimal-mistakes/pull/3691)
|
31
49
|
- Improve Finnish translations [#4595](https://github.com/mmistakes/minimal-mistakes/pull/4595)
|
32
|
-
- Remove redundant downcase from _layouts/categories.html. [#4531](https://github.com/mmistakes/minimal-mistakes/pull/4531)
|
50
|
+
- Remove redundant downcase from \_layouts/categories.html. [#4531](https://github.com/mmistakes/minimal-mistakes/pull/4531)
|
33
51
|
- Load latest Font Awesome package. [#3765](https://github.com/mmistakes/minimal-mistakes/pull/3765)
|
34
52
|
- Add missing Polish missing UI text strings. [#3969](https://github.com/mmistakes/minimal-mistakes/pull/3969)
|
35
53
|
- Update breadcrumbs conditional to enable/disable them via Front Matter on pages using `layout: single`. [#3096](https://github.com/mmistakes/minimal-mistakes/pull/3096) [#3669](https://github.com/mmistakes/minimal-mistakes/pull/3669)
|
@@ -40,16 +58,26 @@
|
|
40
58
|
- Update jQuery to v3.6.0. [#3254](https://github.com/mmistakes/minimal-mistakes/pull/3254)
|
41
59
|
- Use notice `<a>` colors for blockquotes that have `notice--` classes applied. [#3140](https://github.com/mmistakes/minimal-mistakes/pull/3140) [#3068](https://github.com/mmistakes/minimal-mistakes/issues/3068)
|
42
60
|
- Add sameAs itemprop to author link. [#3087](https://github.com/mmistakes/minimal-mistakes/pull/3087)
|
43
|
-
- Automatically close invalid PRs using GitHub Actions. [#3313](https://github.com/mmistakes/minimal-mistakes/pull/3313)
|
44
61
|
- Update and add missing Brazilian Portuguese translations. [#3204](https://github.com/mmistakes/minimal-mistakes/pull/3204)
|
45
|
-
- Add link to documentation clarifying how to add plugins. [#3181](https://github.com/mmistakes/minimal-mistakes/pull/3181)
|
46
62
|
- Add optional label attribute for utterances comments. [#3128](https://github.com/mmistakes/minimal-mistakes/pull/3128)
|
47
|
-
- Bump path-parse from 1.0.6 to 1.0.7. [#3116](https://github.com/mmistakes/minimal-mistakes/pull/3116)
|
48
63
|
- Add missing Danish translations. [#3095](https://github.com/mmistakes/minimal-mistakes/pull/3095)
|
49
64
|
- Add ARIA role to search forms. [#3086](https://github.com/mmistakes/minimal-mistakes/pull/3086)
|
50
65
|
- Add overflow scroll bar to sticky table of contents that are taller than the viewport's height. [#2874](https://github.com/mmistakes/minimal-mistakes/pull/2874)
|
51
66
|
- Add Microformats markup. [#3052](https://github.com/mmistakes/minimal-mistakes/pull/3052)
|
67
|
+
|
68
|
+
### Documentation & Maintenance
|
69
|
+
|
70
|
+
- Fix links to Font Awesome gallery. [#3599](https://github.com/mmistakes/minimal-mistakes/pull/3599)
|
71
|
+
- Fix GreedyNav.js attribution link. [#3553](https://github.com/mmistakes/minimal-mistakes/pull/3553)
|
72
|
+
- Fix typo about loading JavaScript in layout documentation. [#3350](https://github.com/mmistakes/minimal-mistakes/pull/3350)
|
73
|
+
- Fix documentation typos. [#3232](https://github.com/mmistakes/minimal-mistakes/pull/3232) [#3318](https://github.com/mmistakes/minimal-mistakes/pull/3318)
|
74
|
+
- Add link to documentation clarifying how to add plugins. [#3181](https://github.com/mmistakes/minimal-mistakes/pull/3181)
|
75
|
+
- Fix broken documentation link and add Baidu site verification to `_config.yml` files. [#3139](https://github.com/mmistakes/minimal-mistakes/pull/3139)
|
76
|
+
- Bump path-parse from 1.0.6 to 1.0.7. [#3116](https://github.com/mmistakes/minimal-mistakes/pull/3116)
|
77
|
+
- Automatically close invalid PRs using GitHub Actions. [#3313](https://github.com/mmistakes/minimal-mistakes/pull/3313)
|
52
78
|
- Add instructions on how to unminify `main.js` for easier browser debugging. [#3055](https://github.com/mmistakes/minimal-mistakes/pull/3055)
|
79
|
+
- Consolidate hard-coded version numbers where possible.
|
80
|
+
- Add Rakefile for automatically syncing CHANGELOG with history and synched them.
|
53
81
|
|
54
82
|
## [4.24.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.24.0)
|
55
83
|
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building per
|
|
27
27
|
- 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.
|
28
28
|
- 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/)).
|
29
29
|
- [Google Analytics](https://www.google.com/analytics/) support.
|
30
|
-
- 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, Kiswahili, 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.
|
30
|
+
- 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, Kiswahili, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), Ukrainian (Українська) and Vietnamese.
|
31
31
|
|
32
32
|
## Skins (color variations)
|
33
33
|
|
data/_data/ui-text.yml
CHANGED
@@ -2022,6 +2022,58 @@ sw-KE:
|
|
2022
2022
|
sw-TZ:
|
2023
2023
|
<<: *DEFAULT_SW
|
2024
2024
|
|
2025
|
+
# Ukrainian / Українська
|
2026
|
+
# -----------------
|
2027
|
+
uk: &DEFAULT_UK
|
2028
|
+
skip_links : "Посилання для переходу"
|
2029
|
+
skip_primary_nav : "Перейти до основної навігації"
|
2030
|
+
skip_content : "Перейти до змісту"
|
2031
|
+
skip_footer : "Перейти до нижнього колонтитула"
|
2032
|
+
page : "Сторінка"
|
2033
|
+
pagination_previous : "Попередня"
|
2034
|
+
pagination_next : "Наступна"
|
2035
|
+
breadcrumb_home_label : "Головна"
|
2036
|
+
breadcrumb_separator : "/"
|
2037
|
+
menu_label : "Випадаюче меню"
|
2038
|
+
search_label : "Пошук"
|
2039
|
+
toc_label : "Зміст"
|
2040
|
+
ext_link_label : "Пряме посилання"
|
2041
|
+
less_than : "менше ніж"
|
2042
|
+
minute_read : "хв. на чітання"
|
2043
|
+
share_on_label : "Поділитися"
|
2044
|
+
meta_label :
|
2045
|
+
tags_label : "Мітки:"
|
2046
|
+
categories_label : "Розділи:"
|
2047
|
+
date_label : "Дата зміни:"
|
2048
|
+
comments_label : "Залишити коментар"
|
2049
|
+
comments_title : "Коментарі"
|
2050
|
+
more_label : "Читати далі"
|
2051
|
+
related_label : "Вам також може сподобатись"
|
2052
|
+
follow_label : "Зв'язатися зі мною:"
|
2053
|
+
feed_label : "RSS-стрічка"
|
2054
|
+
powered_by : "Сайт працює на"
|
2055
|
+
website_label : "Сайт"
|
2056
|
+
email_label : "Электронна пошта"
|
2057
|
+
recent_posts : "Останні записи"
|
2058
|
+
undefined_wpm : "Не визначено параметр words_per_minute в _config.yml"
|
2059
|
+
comment_form_info : "Вашу адресу електронної пошти не буде опубліковано. Обов'язкові поля позначені"
|
2060
|
+
comment_form_comment_label : "Коментар"
|
2061
|
+
comment_form_md_info : "Підтримується синтаксис Markdown."
|
2062
|
+
comment_form_name_label : "Ім'я"
|
2063
|
+
comment_form_email_label : "Електронна пошта"
|
2064
|
+
comment_form_website_label : "Посилання на сайт (необов'язково)"
|
2065
|
+
comment_btn_submit : "Залишити коментар"
|
2066
|
+
comment_btn_submitted : "Відправлено"
|
2067
|
+
comment_success_msg : "Дякую за Ваш коментар! Його буде опубліковано на сайті після перевірки."
|
2068
|
+
comment_error_msg : "На жаль, сталася помилка з надсиланням коментаря. Будь ласка, переконайтеся, що всі обов'язкові поля заповнені та спробуйте знову."
|
2069
|
+
loading_label : "Відправка..."
|
2070
|
+
search_label_text : "Введіть пошуковий запит..."
|
2071
|
+
search_placeholder_text : "Введіть пошуковий запит..."
|
2072
|
+
search_algolia_no_results :
|
2073
|
+
results_found : "Знайдено"
|
2074
|
+
uk-UA:
|
2075
|
+
<<: *DEFAULT_UK
|
2076
|
+
|
2025
2077
|
# Another locale
|
2026
2078
|
# --------------
|
2027
2079
|
#
|
File without changes
|
File without changes
|
@@ -9,16 +9,26 @@
|
|
9
9
|
}
|
10
10
|
|
11
11
|
var script = document.createElement('script');
|
12
|
+
|
12
13
|
script.setAttribute('src', 'https://giscus.app/client.js');
|
13
14
|
script.setAttribute('data-repo', '{{ site.repository | downcase }}');
|
14
15
|
script.setAttribute('data-repo-id', '{{ site.comments.giscus.repo_id }}');
|
15
16
|
script.setAttribute('data-category', '{{ site.comments.giscus.category_name }}');
|
16
17
|
script.setAttribute('data-category-id', '{{ site.comments.giscus.category_id }}');
|
17
18
|
script.setAttribute('data-mapping', '{{ site.comments.giscus.discussion_term | default: "pathname" }}');
|
19
|
+
script.setAttribute('data-strict', '{{ site.comments.giscus.strict | default: 0 }}');
|
18
20
|
script.setAttribute('data-reactions-enabled', '{{ site.comments.giscus.reactions_enabled | default: 1 }}');
|
21
|
+
script.setAttribute('data-emit-metadata', '{{ site.comments.giscus.emit_metadata | default: 0 }}');
|
22
|
+
script.setAttribute('data-input-position', '{{ site.comments.giscus.input_position | default: "top" }}');
|
19
23
|
script.setAttribute('data-theme', '{{ site.comments.giscus.theme | default: "light" }}');
|
24
|
+
script.setAttribute('data-lang', '{{ site.comments.giscus.lang | default: "en" }}');
|
25
|
+
{% if site.comments.giscus.lazy %}
|
26
|
+
script.setAttribute('data-loading', 'lazy');
|
27
|
+
{% endif %}
|
20
28
|
script.setAttribute('crossorigin', 'anonymous');
|
21
29
|
|
30
|
+
script.setAttribute('async', '');
|
31
|
+
|
22
32
|
commentContainer.appendChild(script);
|
23
33
|
})();
|
24
|
-
</script>
|
34
|
+
</script>
|
data/_includes/copyright.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!--
|
2
|
-
Minimal Mistakes Jekyll Theme 4.25.
|
2
|
+
Minimal Mistakes Jekyll Theme 4.25.1 by Michael Rose
|
3
3
|
Copyright 2013-2024 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
Free for personal and commercial use under the MIT license
|
5
5
|
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
data/_includes/copyright.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Minimal Mistakes Jekyll Theme 4.25.
|
2
|
+
* Minimal Mistakes Jekyll Theme 4.25.1 by Michael Rose
|
3
3
|
* Copyright 2013-2024 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
* Free for personal and commercial use under the MIT license
|
5
5
|
* https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
data/_includes/head.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<link href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
7
7
|
{% endunless %}
|
8
8
|
|
9
|
-
|
9
|
+
{%- comment %} https://docs.google.com/presentation/d/1rmxwWa9P6_xHqonmh5ONXRS-jPc5XKbnv99Rjkhe04s/present {% endcomment -%}
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
11
11
|
|
12
12
|
<script>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div class="page__related">
|
2
|
+
{% include before-related.html %}
|
3
|
+
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
|
4
|
+
<div class="grid__wrapper">
|
5
|
+
{% assign count = 0 %}
|
6
|
+
{% assign limit = include.limit | default: 4 %}
|
7
|
+
{% for post in include.posts %}
|
8
|
+
{% if post.hidden %}{% continue %}{% endif %}
|
9
|
+
{% if post.id == page.id %}{% continue %}{% endif %}
|
10
|
+
{% if count >= limit %}{% break %}{% endif %}
|
11
|
+
{% assign count = count | plus: 1 %}
|
12
|
+
{% include archive-single.html type="grid" %}
|
13
|
+
{% endfor %}
|
14
|
+
</div>
|
15
|
+
</div>
|
data/_includes/toc.html
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
OTHER DEALINGS IN THE SOFTWARE.
|
25
25
|
{% endcomment %}
|
26
26
|
{% comment %}
|
27
|
-
Version 1.1
|
27
|
+
Version 1.2.1
|
28
28
|
https://github.com/allejo/jekyll-toc
|
29
29
|
|
30
30
|
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
|
@@ -47,6 +47,7 @@
|
|
47
47
|
* base_url (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
|
48
48
|
* anchor_class (string) : '' - add custom class(es) for each anchor element
|
49
49
|
* skip_no_ids (bool) : false - skip headers that do not have an `id` attribute
|
50
|
+
* flat_toc (bool) : false - when set to true, the TOC will be a single level list
|
50
51
|
|
51
52
|
Output:
|
52
53
|
An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
|
@@ -69,6 +70,7 @@
|
|
69
70
|
|
70
71
|
{% capture jekyll_toc %}{% endcapture %}
|
71
72
|
{% assign orderedList = include.ordered | default: false %}
|
73
|
+
{% assign flatToc = include.flat_toc | default: false %}
|
72
74
|
{% assign baseURL = include.base_url | default: include.baseurl | default: '' %}
|
73
75
|
{% assign skipNoIDs = include.skip_no_ids | default: include.skipNoIDs | default: false %}
|
74
76
|
{% assign minHeader = include.h_min | default: 1 %}
|
@@ -138,9 +140,9 @@
|
|
138
140
|
{% capture listItem %}{{ anchorBody }}{% endcapture %}
|
139
141
|
{% endif %}
|
140
142
|
|
141
|
-
{% if currLevel > lastLevel %}
|
143
|
+
{% if currLevel > lastLevel and flatToc == false %}
|
142
144
|
{% capture jekyll_toc %}{{ jekyll_toc }}<{{ listModifier }}{{ subMenuClass }}>{% endcapture %}
|
143
|
-
{% elsif currLevel < lastLevel %}
|
145
|
+
{% elsif currLevel < lastLevel and flatToc == false %}
|
144
146
|
{% assign repeatCount = lastLevel | minus: currLevel %}
|
145
147
|
|
146
148
|
{% for i in (1..repeatCount) %}
|
@@ -158,8 +160,13 @@
|
|
158
160
|
{% assign firstHeader = false %}
|
159
161
|
{% endfor %}
|
160
162
|
|
161
|
-
{%
|
162
|
-
|
163
|
+
{% if flatToc == true %}
|
164
|
+
{% assign repeatCount = 1 %}
|
165
|
+
{% else %}
|
166
|
+
{% assign repeatCount = minHeader | minus: 1 %}
|
167
|
+
{% assign repeatCount = lastLevel | minus: repeatCount %}
|
168
|
+
{% endif %}
|
169
|
+
|
163
170
|
{% for i in (1..repeatCount) %}
|
164
171
|
{% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
|
165
172
|
{% endfor %}
|
@@ -179,4 +186,4 @@
|
|
179
186
|
{% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
|
180
187
|
{% endif %}
|
181
188
|
{% endif %}
|
182
|
-
{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc }}
|
189
|
+
{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc -}}
|
data/_layouts/default.html
CHANGED
data/_layouts/single.html
CHANGED
@@ -70,26 +70,9 @@ layout: default
|
|
70
70
|
|
71
71
|
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
|
72
72
|
{% if page.id and page.related and site.related_posts.size > 0 %}
|
73
|
-
|
74
|
-
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
|
75
|
-
<div class="grid__wrapper">
|
76
|
-
{% for post in site.related_posts limit:4 %}
|
77
|
-
{% include archive-single.html type="grid" %}
|
78
|
-
{% endfor %}
|
79
|
-
</div>
|
80
|
-
</div>
|
73
|
+
{% include page__related.html posts=site.related_posts %}
|
81
74
|
{% comment %}<!-- otherwise show recent posts if no related when `related: true` -->{% endcomment %}
|
82
75
|
{% elsif page.id and page.related %}
|
83
|
-
|
84
|
-
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
|
85
|
-
<div class="grid__wrapper">
|
86
|
-
{% for post in site.posts limit:4 %}
|
87
|
-
{% if post.id == page.id %}
|
88
|
-
{% continue %}
|
89
|
-
{% endif %}
|
90
|
-
{% include archive-single.html type="grid" %}
|
91
|
-
{% endfor %}
|
92
|
-
</div>
|
93
|
-
</div>
|
76
|
+
{% include page__related.html posts=site.posts %}
|
94
77
|
{% endif %}
|
95
78
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Minimal Mistakes Jekyll Theme 4.25.
|
2
|
+
* Minimal Mistakes Jekyll Theme 4.25.1 by Michael Rose
|
3
3
|
* Copyright 2013-2024 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
* Free for personal and commercial use under the MIT license
|
5
5
|
* https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
@@ -47,7 +47,7 @@ var store = [
|
|
47
47
|
}{%- unless forloop.last and l -%},{%- endunless -%}
|
48
48
|
{%- endfor -%}
|
49
49
|
{%- endfor -%}{%- if site.lunr.search_within_pages -%},
|
50
|
-
{%- assign pages = site.pages | where_exp:'doc','doc.search != false
|
50
|
+
{%- assign pages = site.pages | where_exp: 'doc', 'doc.search != false' | where_exp: 'doc', 'doc.title != null' -%}
|
51
51
|
{%- for doc in pages -%}
|
52
52
|
{%- if forloop.last -%}
|
53
53
|
{%- assign l = true -%}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal-mistakes-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.25.
|
4
|
+
version: 4.25.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Rose
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-04-
|
12
|
+
date: 2024-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- README.md
|
141
141
|
- _data/navigation.yml
|
142
142
|
- _data/ui-text.yml
|
143
|
+
- _includes/after-content.html
|
143
144
|
- _includes/analytics-providers/custom.html
|
144
145
|
- _includes/analytics-providers/google-gtag.html
|
145
146
|
- _includes/analytics-providers/google-universal.html
|
@@ -148,6 +149,7 @@ files:
|
|
148
149
|
- _includes/archive-single.html
|
149
150
|
- _includes/author-profile-custom-links.html
|
150
151
|
- _includes/author-profile.html
|
152
|
+
- _includes/before-related.html
|
151
153
|
- _includes/breadcrumbs.html
|
152
154
|
- _includes/category-list.html
|
153
155
|
- _includes/comment.html
|
@@ -179,6 +181,7 @@ files:
|
|
179
181
|
- _includes/page__hero.html
|
180
182
|
- _includes/page__hero_video.html
|
181
183
|
- _includes/page__meta.html
|
184
|
+
- _includes/page__related.html
|
182
185
|
- _includes/page__taxonomy.html
|
183
186
|
- _includes/paginator.html
|
184
187
|
- _includes/post_pagination.html
|