minimal-mistakes-jekyll 4.23.0 → 4.25.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 +314 -244
- data/README.md +29 -19
- data/_data/ui-text.yml +97 -39
- data/_includes/author-profile-custom-links.html +1 -1
- data/_includes/author-profile.html +36 -42
- data/_includes/breadcrumbs.html +3 -2
- data/_includes/category-list.html +1 -1
- data/_includes/comments-providers/giscus.html +24 -0
- data/_includes/comments-providers/scripts.html +2 -0
- data/_includes/comments-providers/utterances.html +1 -0
- data/_includes/comments.html +33 -12
- data/_includes/copyright.html +6 -0
- data/_includes/copyright.js +6 -0
- data/_includes/footer.html +1 -1
- data/_includes/head.html +3 -17
- data/_includes/masthead.html +1 -3
- data/_includes/page__date.html +3 -3
- data/_includes/paginator.html +2 -1
- data/_includes/search/algolia-search-scripts.html +72 -51
- data/_includes/search/search_form.html +2 -2
- data/_includes/skip-links.html +0 -1
- data/_includes/social-share.html +1 -1
- data/_includes/tag-list.html +1 -1
- data/_includes/video +1 -1
- data/_layouts/categories.html +1 -1
- data/_layouts/default.html +1 -7
- data/_layouts/search.html +2 -2
- data/_layouts/single.html +12 -6
- data/_sass/minimal-mistakes/_base.scss +0 -18
- data/_sass/minimal-mistakes/_copyright.scss +6 -0
- data/_sass/minimal-mistakes/_navigation.scss +2 -2
- data/_sass/minimal-mistakes/_notices.scss +4 -0
- data/_sass/minimal-mistakes/_page.scss +19 -0
- data/_sass/minimal-mistakes/_sidebar.scss +7 -0
- data/_sass/minimal-mistakes.scss +2 -5
- data/assets/css/main.scss +1 -0
- data/assets/js/_main.js +7 -7
- data/assets/js/lunr/lunr-store.js +36 -1
- data/assets/js/main.min.js +5 -4
- data/assets/js/plugins/jquery.greedy-navigation.js +2 -2
- data/assets/js/vendor/jquery/{jquery-3.5.1.js → jquery-3.6.0.js} +118 -109
- metadata +9 -5
- data/_includes/browser-upgrade.html +0 -3
data/_sass/minimal-mistakes.scss
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
* Copyright 2013-2020 Michael Rose - mademistakes.com | @mmistakes
|
4
|
-
* Licensed under MIT (https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE)
|
5
|
-
*/
|
1
|
+
/* Copyright comment */
|
2
|
+
@import "minimal-mistakes/copyright";
|
6
3
|
|
7
4
|
/* Variables */
|
8
5
|
@import "minimal-mistakes/variables";
|
data/assets/css/main.scss
CHANGED
data/assets/js/_main.js
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
jQuery plugin settings and other scripts
|
3
3
|
========================================================================== */
|
4
4
|
|
5
|
-
$(
|
5
|
+
$(function() {
|
6
6
|
// FitVids init
|
7
7
|
$("#main").fitVids();
|
8
8
|
|
9
9
|
// Sticky sidebar
|
10
10
|
var stickySideBar = function() {
|
11
11
|
var show =
|
12
|
-
$(".author__urls-wrapper
|
12
|
+
$(".author__urls-wrapper").find("button").length === 0
|
13
13
|
? $(window).width() > 1024 // width should match $large Sass variable
|
14
|
-
: !$(".author__urls-wrapper
|
14
|
+
: !$(".author__urls-wrapper").find("button").is(":visible");
|
15
15
|
if (show) {
|
16
16
|
// fix
|
17
17
|
$(".sidebar").addClass("sticky");
|
@@ -28,9 +28,9 @@ $(document).ready(function() {
|
|
28
28
|
});
|
29
29
|
|
30
30
|
// Follow menu drop down
|
31
|
-
$(".author__urls-wrapper
|
31
|
+
$(".author__urls-wrapper").find("button").on("click", function() {
|
32
32
|
$(".author__urls").toggleClass("is--visible");
|
33
|
-
$(".author__urls-wrapper
|
33
|
+
$(".author__urls-wrapper").find("button").toggleClass("open");
|
34
34
|
});
|
35
35
|
|
36
36
|
// Close search screen with Esc key
|
@@ -49,7 +49,7 @@ $(document).ready(function() {
|
|
49
49
|
$(".initial-content").toggleClass("is--hidden");
|
50
50
|
// set focus on input
|
51
51
|
setTimeout(function() {
|
52
|
-
$(".search-content
|
52
|
+
$(".search-content").find("input").focus();
|
53
53
|
}, 400);
|
54
54
|
});
|
55
55
|
|
@@ -84,7 +84,7 @@ $(document).ready(function() {
|
|
84
84
|
// add lightbox class to all image links
|
85
85
|
$(
|
86
86
|
"a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif'],a[href$='.webp']"
|
87
|
-
).addClass("image-popup");
|
87
|
+
).has("> img").addClass("image-popup");
|
88
88
|
|
89
89
|
// Magnific-Popup options
|
90
90
|
$(".image-popup").magnificPopup({
|
@@ -46,4 +46,39 @@ var store = [
|
|
46
46
|
"teaser": {{ teaser | relative_url | jsonify }}
|
47
47
|
}{%- unless forloop.last and l -%},{%- endunless -%}
|
48
48
|
{%- endfor -%}
|
49
|
-
{%- endfor -%}
|
49
|
+
{%- endfor -%}{%- if site.lunr.search_within_pages -%},
|
50
|
+
{%- assign pages = site.pages | where_exp:'doc','doc.search != false and doc.title != null' -%}
|
51
|
+
{%- for doc in pages -%}
|
52
|
+
{%- if forloop.last -%}
|
53
|
+
{%- assign l = true -%}
|
54
|
+
{%- endif -%}
|
55
|
+
{
|
56
|
+
"title": {{ doc.title | jsonify }},
|
57
|
+
"excerpt":
|
58
|
+
{%- if site.search_full_content == true -%}
|
59
|
+
{{ doc.content | newline_to_br |
|
60
|
+
replace:"<br />", " " |
|
61
|
+
replace:"</p>", " " |
|
62
|
+
replace:"</h1>", " " |
|
63
|
+
replace:"</h2>", " " |
|
64
|
+
replace:"</h3>", " " |
|
65
|
+
replace:"</h4>", " " |
|
66
|
+
replace:"</h5>", " " |
|
67
|
+
replace:"</h6>", " "|
|
68
|
+
strip_html | strip_newlines | jsonify }},
|
69
|
+
{%- else -%}
|
70
|
+
{{ doc.content | newline_to_br |
|
71
|
+
replace:"<br />", " " |
|
72
|
+
replace:"</p>", " " |
|
73
|
+
replace:"</h1>", " " |
|
74
|
+
replace:"</h2>", " " |
|
75
|
+
replace:"</h3>", " " |
|
76
|
+
replace:"</h4>", " " |
|
77
|
+
replace:"</h5>", " " |
|
78
|
+
replace:"</h6>", " "|
|
79
|
+
strip_html | strip_newlines | truncatewords: 50 | jsonify }},
|
80
|
+
{%- endif -%}
|
81
|
+
"url": {{ doc.url | absolute_url | jsonify }}
|
82
|
+
}{%- unless forloop.last and l -%},{%- endunless -%}
|
83
|
+
{%- endfor -%}
|
84
|
+
{%- endif -%}]
|