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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +296 -243
- data/README.md +27 -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/utterances.html +1 -0
- data/_includes/comments.html +30 -12
- data/_includes/copyright.html +6 -0
- data/_includes/copyright.js +6 -0
- data/_includes/footer.html +1 -1
- data/_includes/head.html +2 -2
- 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/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/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 +8 -5
- 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 -%}]
|