minimal-mistakes-jekyll 4.24.0 → 4.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +296 -243
  3. data/README.md +27 -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/utterances.html +1 -0
  10. data/_includes/comments.html +30 -12
  11. data/_includes/copyright.html +6 -0
  12. data/_includes/copyright.js +6 -0
  13. data/_includes/footer.html +1 -1
  14. data/_includes/head.html +2 -2
  15. data/_includes/page__date.html +3 -3
  16. data/_includes/paginator.html +2 -1
  17. data/_includes/search/algolia-search-scripts.html +72 -51
  18. data/_includes/search/search_form.html +2 -2
  19. data/_includes/social-share.html +1 -1
  20. data/_includes/tag-list.html +1 -1
  21. data/_includes/video +1 -1
  22. data/_layouts/categories.html +1 -1
  23. data/_layouts/default.html +1 -7
  24. data/_layouts/single.html +12 -6
  25. data/_sass/minimal-mistakes/_base.scss +0 -18
  26. data/_sass/minimal-mistakes/_copyright.scss +6 -0
  27. data/_sass/minimal-mistakes/_navigation.scss +2 -2
  28. data/_sass/minimal-mistakes/_notices.scss +4 -0
  29. data/_sass/minimal-mistakes/_page.scss +19 -0
  30. data/_sass/minimal-mistakes/_sidebar.scss +7 -0
  31. data/_sass/minimal-mistakes.scss +2 -5
  32. data/assets/css/main.scss +1 -0
  33. data/assets/js/_main.js +7 -7
  34. data/assets/js/lunr/lunr-store.js +36 -1
  35. data/assets/js/main.min.js +5 -4
  36. data/assets/js/plugins/jquery.greedy-navigation.js +2 -2
  37. data/assets/js/vendor/jquery/{jquery-3.5.1.js → jquery-3.6.0.js} +118 -109
  38. metadata +8 -5
  39. data/_includes/browser-upgrade.html +0 -3
@@ -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 -%}]