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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +314 -244
  3. data/README.md +29 -19
  4. data/_data/ui-text.yml +97 -39
  5. data/_includes/author-profile-custom-links.html +1 -1
  6. data/_includes/author-profile.html +36 -42
  7. data/_includes/breadcrumbs.html +3 -2
  8. data/_includes/category-list.html +1 -1
  9. data/_includes/comments-providers/giscus.html +24 -0
  10. data/_includes/comments-providers/scripts.html +2 -0
  11. data/_includes/comments-providers/utterances.html +1 -0
  12. data/_includes/comments.html +33 -12
  13. data/_includes/copyright.html +6 -0
  14. data/_includes/copyright.js +6 -0
  15. data/_includes/footer.html +1 -1
  16. data/_includes/head.html +3 -17
  17. data/_includes/masthead.html +1 -3
  18. data/_includes/page__date.html +3 -3
  19. data/_includes/paginator.html +2 -1
  20. data/_includes/search/algolia-search-scripts.html +72 -51
  21. data/_includes/search/search_form.html +2 -2
  22. data/_includes/skip-links.html +0 -1
  23. data/_includes/social-share.html +1 -1
  24. data/_includes/tag-list.html +1 -1
  25. data/_includes/video +1 -1
  26. data/_layouts/categories.html +1 -1
  27. data/_layouts/default.html +1 -7
  28. data/_layouts/search.html +2 -2
  29. data/_layouts/single.html +12 -6
  30. data/_sass/minimal-mistakes/_base.scss +0 -18
  31. data/_sass/minimal-mistakes/_copyright.scss +6 -0
  32. data/_sass/minimal-mistakes/_navigation.scss +2 -2
  33. data/_sass/minimal-mistakes/_notices.scss +4 -0
  34. data/_sass/minimal-mistakes/_page.scss +19 -0
  35. data/_sass/minimal-mistakes/_sidebar.scss +7 -0
  36. data/_sass/minimal-mistakes.scss +2 -5
  37. data/assets/css/main.scss +1 -0
  38. data/assets/js/_main.js +7 -7
  39. data/assets/js/lunr/lunr-store.js +36 -1
  40. data/assets/js/main.min.js +5 -4
  41. data/assets/js/plugins/jquery.greedy-navigation.js +2 -2
  42. data/assets/js/vendor/jquery/{jquery-3.5.1.js → jquery-3.6.0.js} +118 -109
  43. metadata +9 -5
  44. data/_includes/browser-upgrade.html +0 -3
@@ -89,6 +89,13 @@
89
89
  position: sticky;
90
90
  top: 2em;
91
91
  float: right;
92
+
93
+ .toc {
94
+ .toc__menu {
95
+ overflow-y: auto;
96
+ max-height: calc(100vh - 7em);
97
+ }
98
+ }
92
99
  }
93
100
  }
94
101
 
@@ -1,8 +1,5 @@
1
- /*!
2
- * Minimal Mistakes Jekyll Theme 4.23.0 by Michael Rose
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
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  # Only the main Sass file needs front matter (the dashes are enough)
3
+ search: false
3
4
  ---
4
5
 
5
6
  @charset "utf-8";
data/assets/js/_main.js CHANGED
@@ -2,16 +2,16 @@
2
2
  jQuery plugin settings and other scripts
3
3
  ========================================================================== */
4
4
 
5
- $(document).ready(function() {
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 button").length === 0
12
+ $(".author__urls-wrapper").find("button").length === 0
13
13
  ? $(window).width() > 1024 // width should match $large Sass variable
14
- : !$(".author__urls-wrapper button").is(":visible");
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 button").on("click", function() {
31
+ $(".author__urls-wrapper").find("button").on("click", function() {
32
32
  $(".author__urls").toggleClass("is--visible");
33
- $(".author__urls-wrapper button").toggleClass("open");
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 input").focus();
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 -%}]