minimal-mistakes-jekyll 4.10.0 → 4.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -1
  3. data/LICENSE.txt +63 -63
  4. data/_data/navigation.yml +11 -11
  5. data/_data/ui-text.yml +986 -983
  6. data/_includes/analytics-providers/custom.html +2 -2
  7. data/_includes/analytics-providers/google-gtag.html +9 -0
  8. data/_includes/analytics-providers/google-universal.html +9 -9
  9. data/_includes/analytics-providers/google.html +10 -10
  10. data/_includes/analytics.html +13 -11
  11. data/_includes/archive-single.html +37 -37
  12. data/_includes/author-profile-custom-links.html +6 -6
  13. data/_includes/base_path +4 -4
  14. data/_includes/breadcrumbs.html +39 -39
  15. data/_includes/browser-upgrade.html +3 -3
  16. data/_includes/category-list.html +25 -25
  17. data/_includes/comment.html +22 -22
  18. data/_includes/comments-providers/custom.html +2 -2
  19. data/_includes/comments-providers/discourse.html +13 -13
  20. data/_includes/comments-providers/facebook.html +7 -7
  21. data/_includes/comments-providers/google-plus.html +1 -1
  22. data/_includes/comments-providers/staticman.html +41 -41
  23. data/_includes/comments-providers/staticman_v2.html +41 -41
  24. data/_includes/comments.html +168 -168
  25. data/_includes/feature_row +49 -49
  26. data/_includes/figure +12 -12
  27. data/_includes/footer.html +25 -25
  28. data/_includes/footer/custom.html +2 -2
  29. data/_includes/gallery +46 -46
  30. data/_includes/group-by-array +46 -46
  31. data/_includes/head.html +42 -42
  32. data/_includes/head/custom.html +5 -5
  33. data/_includes/nav_list +46 -46
  34. data/_includes/page__hero.html +61 -61
  35. data/_includes/page__hero_video.html +4 -4
  36. data/_includes/page__taxonomy.html +6 -6
  37. data/_includes/paginator.html +69 -69
  38. data/_includes/post_pagination.html +13 -13
  39. data/_includes/read-time.html +14 -14
  40. data/_includes/scripts.html +26 -26
  41. data/_includes/search/algolia-search-scripts.html +54 -54
  42. data/_includes/search/lunr-search-scripts.html +9 -9
  43. data/_includes/search/search_form.html +10 -10
  44. data/_includes/seo.html +166 -166
  45. data/_includes/sidebar.html +22 -22
  46. data/_includes/social-share.html +13 -13
  47. data/_includes/tag-list.html +25 -25
  48. data/_includes/toc +6 -6
  49. data/_includes/toc.html +74 -74
  50. data/_includes/video +11 -11
  51. data/_layouts/archive-taxonomy.html +14 -14
  52. data/_layouts/compress.html +10 -10
  53. data/_layouts/default.html +1 -1
  54. data/_layouts/home.html +11 -11
  55. data/_layouts/search.html +35 -35
  56. data/_layouts/single.html +92 -92
  57. data/_layouts/splash.html +21 -21
  58. data/_sass/minimal-mistakes.scss +1 -1
  59. data/_sass/minimal-mistakes/_animations.scss +20 -20
  60. data/_sass/minimal-mistakes/_archive.scss +319 -319
  61. data/_sass/minimal-mistakes/_buttons.scss +97 -97
  62. data/_sass/minimal-mistakes/_footer.scss +85 -85
  63. data/_sass/minimal-mistakes/_masthead.scss +83 -83
  64. data/_sass/minimal-mistakes/_mixins.scss +91 -91
  65. data/_sass/minimal-mistakes/_notices.scss +99 -99
  66. data/_sass/minimal-mistakes/_page.scss +452 -452
  67. data/_sass/minimal-mistakes/_reset.scss +186 -186
  68. data/_sass/minimal-mistakes/_search.scss +125 -125
  69. data/_sass/minimal-mistakes/_sidebar.scss +297 -297
  70. data/_sass/minimal-mistakes/_tables.scss +36 -36
  71. data/_sass/minimal-mistakes/_utilities.scss +520 -520
  72. data/_sass/minimal-mistakes/_variables.scss +153 -153
  73. data/_sass/minimal-mistakes/skins/_air.scss +23 -23
  74. data/_sass/minimal-mistakes/skins/_aqua.scss +29 -29
  75. data/_sass/minimal-mistakes/skins/_contrast.scss +51 -51
  76. data/_sass/minimal-mistakes/skins/_dark.scss +42 -42
  77. data/_sass/minimal-mistakes/skins/_default.scss +5 -5
  78. data/_sass/minimal-mistakes/skins/_dirt.scss +33 -33
  79. data/_sass/minimal-mistakes/skins/_mint.scss +23 -23
  80. data/_sass/minimal-mistakes/skins/_neon.scss +53 -53
  81. data/_sass/minimal-mistakes/skins/_plum.scss +60 -60
  82. data/_sass/minimal-mistakes/skins/_sunrise.scss +44 -44
  83. data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -114
  84. data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +94 -94
  85. data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -151
  86. data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +49 -49
  87. data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -15
  88. data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -215
  89. data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -82
  90. data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +70 -70
  91. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -33
  92. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -82
  93. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -31
  94. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -26
  95. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -36
  96. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
  97. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -22
  98. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
  99. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
  100. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -13
  101. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -18
  102. data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -649
  103. data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +45 -45
  104. data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -13
  105. data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -5
  106. data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -5
  107. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -7
  108. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -114
  109. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -67
  110. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -14
  111. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -18
  112. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -133
  113. data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -318
  114. data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -261
  115. data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -163
  116. data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -329
  117. data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -441
  118. data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -213
  119. data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -191
  120. data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -56
  121. data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -167
  122. data/assets/css/main.scss +7 -7
  123. data/assets/js/_main.js +106 -106
  124. data/assets/js/lunr/lunr-en.js +75 -75
  125. data/assets/js/lunr/lunr-gr.js +528 -528
  126. data/assets/js/lunr/lunr-store.js +36 -36
  127. data/assets/js/lunr/lunr.js +2977 -2977
  128. data/assets/js/main.min.js +5 -5
  129. data/assets/js/plugins/jquery.fitvids.js +81 -81
  130. data/assets/js/vendor/jquery/jquery-3.3.1.min.js +2 -0
  131. metadata +5 -4
  132. data/assets/js/vendor/jquery/jquery-3.2.1.min.js +0 -4
@@ -1,61 +1,61 @@
1
- {% if page.header.image contains "://" %}
2
- {% capture img_path %}{{ page.header.image }}{% endcapture %}
3
- {% else %}
4
- {% capture img_path %}{{ page.header.image | absolute_url }}{% endcapture %}
5
- {% endif %}
6
-
7
- {% if page.header.cta_url contains "://" %}
8
- {% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
9
- {% else %}
10
- {% capture cta_path %}{{ page.header.cta_url | absolute_url }}{% endcapture %}
11
- {% endif %}
12
-
13
- {% if page.header.overlay_image contains "://" %}
14
- {% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
15
- {% elsif page.header.overlay_image %}
16
- {% capture overlay_img_path %}{{ page.header.overlay_image | absolute_url }}{% endcapture %}
17
- {% endif %}
18
-
19
- {% if page.header.overlay_filter contains "rgba" %}
20
- {% capture overlay_filter %}{{ page.header.overlay_filter }}{% endcapture %}
21
- {% elsif page.header.overlay_filter %}
22
- {% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %}
23
- {% endif %}
24
-
25
- {% if page.header.image_description %}
26
- {% assign image_description = page.header.image_description %}
27
- {% else %}
28
- {% assign image_description = page.title %}
29
- {% endif %}
30
-
31
- {% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %}
32
-
33
- <div class="page__hero{% if page.header.overlay_color or page.header.overlay_image %}--overlay{% endif %}"
34
- style="{% if page.header.overlay_color %}background-color: {{ page.header.overlay_color | default: 'transparent' }};{% endif %} {% if overlay_img_path %}background-image: {% if overlay_filter %}linear-gradient({{ overlay_filter }}, {{ overlay_filter }}), {% endif %}url('{{ overlay_img_path }}');{% endif %}"
35
- >
36
- {% if page.header.overlay_color or page.header.overlay_image %}
37
- <div class="wrapper">
38
- <h1 class="page__title" itemprop="headline">
39
- {% if paginator and site.paginate_show_page_num %}
40
- {{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
41
- {% else %}
42
- {{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
43
- {% endif %}
44
- </h1>
45
- {% if page.header.show_overlay_excerpt != false and page.excerpt %}
46
- <p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
47
- {% endif %}
48
- {% if site.read_time and page.read_time %}
49
- <p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
50
- {% endif %}
51
- {% if page.header.cta_url %}
52
- <p><a href="{{ cta_path }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
53
- {% endif %}
54
- </div>
55
- {% else %}
56
- <img src="{{ img_path }}" alt="{{ image_description }}" class="page__hero-image">
57
- {% endif %}
58
- {% if page.header.caption %}
59
- <span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
60
- {% endif %}
61
- </div>
1
+ {% if page.header.image contains "://" %}
2
+ {% capture img_path %}{{ page.header.image }}{% endcapture %}
3
+ {% else %}
4
+ {% capture img_path %}{{ page.header.image | absolute_url }}{% endcapture %}
5
+ {% endif %}
6
+
7
+ {% if page.header.cta_url contains "://" %}
8
+ {% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
9
+ {% else %}
10
+ {% capture cta_path %}{{ page.header.cta_url | absolute_url }}{% endcapture %}
11
+ {% endif %}
12
+
13
+ {% if page.header.overlay_image contains "://" %}
14
+ {% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
15
+ {% elsif page.header.overlay_image %}
16
+ {% capture overlay_img_path %}{{ page.header.overlay_image | absolute_url }}{% endcapture %}
17
+ {% endif %}
18
+
19
+ {% if page.header.overlay_filter contains "rgba" %}
20
+ {% capture overlay_filter %}{{ page.header.overlay_filter }}{% endcapture %}
21
+ {% elsif page.header.overlay_filter %}
22
+ {% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %}
23
+ {% endif %}
24
+
25
+ {% if page.header.image_description %}
26
+ {% assign image_description = page.header.image_description %}
27
+ {% else %}
28
+ {% assign image_description = page.title %}
29
+ {% endif %}
30
+
31
+ {% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %}
32
+
33
+ <div class="page__hero{% if page.header.overlay_color or page.header.overlay_image %}--overlay{% endif %}"
34
+ style="{% if page.header.overlay_color %}background-color: {{ page.header.overlay_color | default: 'transparent' }};{% endif %} {% if overlay_img_path %}background-image: {% if overlay_filter %}linear-gradient({{ overlay_filter }}, {{ overlay_filter }}), {% endif %}url('{{ overlay_img_path }}');{% endif %}"
35
+ >
36
+ {% if page.header.overlay_color or page.header.overlay_image %}
37
+ <div class="wrapper">
38
+ <h1 class="page__title" itemprop="headline">
39
+ {% if paginator and site.paginate_show_page_num %}
40
+ {{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
41
+ {% else %}
42
+ {{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
43
+ {% endif %}
44
+ </h1>
45
+ {% if page.header.show_overlay_excerpt != false and page.excerpt %}
46
+ <p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
47
+ {% endif %}
48
+ {% if site.read_time and page.read_time %}
49
+ <p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
50
+ {% endif %}
51
+ {% if page.header.cta_url %}
52
+ <p><a href="{{ cta_path }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
53
+ {% endif %}
54
+ </div>
55
+ {% else %}
56
+ <img src="{{ img_path }}" alt="{{ image_description }}" class="page__hero-image">
57
+ {% endif %}
58
+ {% if page.header.caption %}
59
+ <span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
60
+ {% endif %}
61
+ </div>
@@ -1,4 +1,4 @@
1
- {% capture video_id %}{{ page.header.video.id }}{% endcapture %}
2
- {% capture video_provider %}{{ page.header.video.provider }}{% endcapture %}
3
-
4
- {% include video id=video_id provider=video_provider %}
1
+ {% capture video_id %}{{ page.header.video.id }}{% endcapture %}
2
+ {% capture video_provider %}{{ page.header.video.provider }}{% endcapture %}
3
+
4
+ {% include video id=video_id provider=video_provider %}
@@ -1,7 +1,7 @@
1
- {% if site.tag_archive.type and page.tags[0] %}
2
- {% include tag-list.html %}
3
- {% endif %}
4
-
5
- {% if site.category_archive.type and page.categories[0] %}
6
- {% include category-list.html %}
1
+ {% if site.tag_archive.type and page.tags[0] %}
2
+ {% include tag-list.html %}
3
+ {% endif %}
4
+
5
+ {% if site.category_archive.type and page.categories[0] %}
6
+ {% include category-list.html %}
7
7
  {% endif %}
@@ -1,69 +1,69 @@
1
- {% if paginator.total_pages > 1 %}
2
- <nav class="pagination">
3
- {% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | absolute_url %}
4
- <ul>
5
- {% comment %} Link for previous page {% endcomment %}
6
- {% if paginator.previous_page %}
7
- {% if paginator.previous_page == 1 %}
8
- <li><a href="{{ first_page_path }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
9
- {% else %}
10
- <li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | absolute_url }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
11
- {% endif %}
12
- {% else %}
13
- <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</span></a></li>
14
- {% endif %}
15
-
16
- {% comment %} First page {% endcomment %}
17
- {% if paginator.page == 1 %}
18
- <li><a href="#" class="disabled current">1</a></li>
19
- {% else %}
20
- <li><a href="{{ first_page_path }}">1</a></li>
21
- {% endif %}
22
-
23
- {% assign page_start = 2 %}
24
- {% if paginator.page > 4 %}
25
- {% assign page_start = paginator.page | minus: 2 %}
26
- {% comment %} Ellipsis for truncated links {% endcomment %}
27
- <li><a href="#" class="disabled">&hellip;</a></li>
28
- {% endif %}
29
-
30
- {% assign page_end = paginator.total_pages | minus: 1 %}
31
- {% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
32
- {% if pages_to_end > 4 %}
33
- {% assign page_end = paginator.page | plus: 2 %}
34
- {% endif %}
35
-
36
- {% for index in (page_start..page_end) %}
37
- {% if index == paginator.page %}
38
- <li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | absolute_url }}" class="disabled current">{{ index }}</a></li>
39
- {% else %}
40
- {% comment %} Distance from current page and this link {% endcomment %}
41
- {% assign dist = paginator.page | minus: index %}
42
- {% if dist < 0 %}
43
- {% comment %} Distance must be a positive value {% endcomment %}
44
- {% assign dist = 0 | minus: dist %}
45
- {% endif %}
46
- <li><a href="{{ site.paginate_path | replace: ':num', index | absolute_url }}">{{ index }}</a></li>
47
- {% endif %}
48
- {% endfor %}
49
-
50
- {% comment %} Ellipsis for truncated links {% endcomment %}
51
- {% if pages_to_end > 3 %}
52
- <li><a href="#" class="disabled">&hellip;</a></li>
53
- {% endif %}
54
-
55
- {% if paginator.page == paginator.total_pages %}
56
- <li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
57
- {% else %}
58
- <li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | absolute_url }}">{{ paginator.total_pages }}</a></li>
59
- {% endif %}
60
-
61
- {% comment %} Link next page {% endcomment %}
62
- {% if paginator.next_page %}
63
- <li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | absolute_url }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a></li>
64
- {% else %}
65
- <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</span></a></li>
66
- {% endif %}
67
- </ul>
68
- </nav>
69
- {% endif %}
1
+ {% if paginator.total_pages > 1 %}
2
+ <nav class="pagination">
3
+ {% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | absolute_url %}
4
+ <ul>
5
+ {% comment %} Link for previous page {% endcomment %}
6
+ {% if paginator.previous_page %}
7
+ {% if paginator.previous_page == 1 %}
8
+ <li><a href="{{ first_page_path }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
9
+ {% else %}
10
+ <li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | absolute_url }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
11
+ {% endif %}
12
+ {% else %}
13
+ <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</span></a></li>
14
+ {% endif %}
15
+
16
+ {% comment %} First page {% endcomment %}
17
+ {% if paginator.page == 1 %}
18
+ <li><a href="#" class="disabled current">1</a></li>
19
+ {% else %}
20
+ <li><a href="{{ first_page_path }}">1</a></li>
21
+ {% endif %}
22
+
23
+ {% assign page_start = 2 %}
24
+ {% if paginator.page > 4 %}
25
+ {% assign page_start = paginator.page | minus: 2 %}
26
+ {% comment %} Ellipsis for truncated links {% endcomment %}
27
+ <li><a href="#" class="disabled">&hellip;</a></li>
28
+ {% endif %}
29
+
30
+ {% assign page_end = paginator.total_pages | minus: 1 %}
31
+ {% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
32
+ {% if pages_to_end > 4 %}
33
+ {% assign page_end = paginator.page | plus: 2 %}
34
+ {% endif %}
35
+
36
+ {% for index in (page_start..page_end) %}
37
+ {% if index == paginator.page %}
38
+ <li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | absolute_url }}" class="disabled current">{{ index }}</a></li>
39
+ {% else %}
40
+ {% comment %} Distance from current page and this link {% endcomment %}
41
+ {% assign dist = paginator.page | minus: index %}
42
+ {% if dist < 0 %}
43
+ {% comment %} Distance must be a positive value {% endcomment %}
44
+ {% assign dist = 0 | minus: dist %}
45
+ {% endif %}
46
+ <li><a href="{{ site.paginate_path | replace: ':num', index | absolute_url }}">{{ index }}</a></li>
47
+ {% endif %}
48
+ {% endfor %}
49
+
50
+ {% comment %} Ellipsis for truncated links {% endcomment %}
51
+ {% if pages_to_end > 3 %}
52
+ <li><a href="#" class="disabled">&hellip;</a></li>
53
+ {% endif %}
54
+
55
+ {% if paginator.page == paginator.total_pages %}
56
+ <li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
57
+ {% else %}
58
+ <li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | absolute_url }}">{{ paginator.total_pages }}</a></li>
59
+ {% endif %}
60
+
61
+ {% comment %} Link next page {% endcomment %}
62
+ {% if paginator.next_page %}
63
+ <li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | absolute_url }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a></li>
64
+ {% else %}
65
+ <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</span></a></li>
66
+ {% endif %}
67
+ </ul>
68
+ </nav>
69
+ {% endif %}
@@ -1,14 +1,14 @@
1
- {% if page.previous or page.next %}
2
- <nav class="pagination">
3
- {% if page.previous %}
4
- <a href="{{ page.previous.url | absolute_url }}" class="pagination--pager" title="{{ page.previous.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
5
- {% else %}
6
- <a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
7
- {% endif %}
8
- {% if page.next %}
9
- <a href="{{ page.next.url | absolute_url }}" class="pagination--pager" title="{{ page.next.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
10
- {% else %}
11
- <a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
12
- {% endif %}
13
- </nav>
1
+ {% if page.previous or page.next %}
2
+ <nav class="pagination">
3
+ {% if page.previous %}
4
+ <a href="{{ page.previous.url | absolute_url }}" class="pagination--pager" title="{{ page.previous.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
5
+ {% else %}
6
+ <a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
7
+ {% endif %}
8
+ {% if page.next %}
9
+ <a href="{{ page.next.url | absolute_url }}" class="pagination--pager" title="{{ page.next.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
10
+ {% else %}
11
+ <a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
12
+ {% endif %}
13
+ </nav>
14
14
  {% endif %}
@@ -1,15 +1,15 @@
1
- {% assign words_per_minute = site.words_per_minute | default: 200 %}
2
-
3
- {% if post.read_time %}
4
- {% assign words = post.content | strip_html | number_of_words %}
5
- {% elsif page.read_time %}
6
- {% assign words = page.content | strip_html | number_of_words %}
7
- {% endif %}
8
-
9
- {% if words < words_per_minute %}
10
- {{ site.data.ui-text[site.locale].less_than | default: "less than" }} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
11
- {% elsif words == words_per_minute %}
12
- 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
13
- {% else %}
14
- {{ words | divided_by:words_per_minute }} {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
1
+ {% assign words_per_minute = site.words_per_minute | default: 200 %}
2
+
3
+ {% if post.read_time %}
4
+ {% assign words = post.content | strip_html | number_of_words %}
5
+ {% elsif page.read_time %}
6
+ {% assign words = page.content | strip_html | number_of_words %}
7
+ {% endif %}
8
+
9
+ {% if words < words_per_minute %}
10
+ {{ site.data.ui-text[site.locale].less_than | default: "less than" }} 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
11
+ {% elsif words == words_per_minute %}
12
+ 1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
13
+ {% else %}
14
+ {{ words | divided_by:words_per_minute }} {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
15
15
  {% endif %}
@@ -1,26 +1,26 @@
1
- {% if site.footer_scripts %}
2
- {% for script in site.footer_scripts %}
3
- {% if script contains "://" %}
4
- {% capture script_path %}{{ script }}{% endcapture %}
5
- {% else %}
6
- {% capture script_path %}{{ script | absolute_url }}{% endcapture %}
7
- {% endif %}
8
- <script src="{{ script_path }}"></script>
9
- {% endfor %}
10
- {% else %}
11
- <script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
12
- <script src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
13
- {% endif %}
14
-
15
- {% if site.search == true or page.layout == "search" %}
16
- {%- assign search_provider = site.search_provider | default: "lunr" -%}
17
- {%- case search_provider -%}
18
- {%- when "lunr" -%}
19
- {% include search/lunr-search-scripts.html %}
20
- {%- when "algolia" -%}
21
- {% include search/algolia-search-scripts.html %}
22
- {%- endcase -%}
23
- {% endif %}
24
-
25
- {% include analytics.html %}
26
- {% include /comments-providers/scripts.html %}
1
+ {% if site.footer_scripts %}
2
+ {% for script in site.footer_scripts %}
3
+ {% if script contains "://" %}
4
+ {% capture script_path %}{{ script }}{% endcapture %}
5
+ {% else %}
6
+ {% capture script_path %}{{ script | absolute_url }}{% endcapture %}
7
+ {% endif %}
8
+ <script src="{{ script_path }}"></script>
9
+ {% endfor %}
10
+ {% else %}
11
+ <script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
12
+ <script src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
13
+ {% endif %}
14
+
15
+ {% if site.search == true or page.layout == "search" %}
16
+ {%- assign search_provider = site.search_provider | default: "lunr" -%}
17
+ {%- case search_provider -%}
18
+ {%- when "lunr" -%}
19
+ {% include search/lunr-search-scripts.html %}
20
+ {%- when "algolia" -%}
21
+ {% include search/algolia-search-scripts.html %}
22
+ {%- endcase -%}
23
+ {% endif %}
24
+
25
+ {% include analytics.html %}
26
+ {% include /comments-providers/scripts.html %}
@@ -1,54 +1,54 @@
1
- <!-- Including InstantSearch.js library and styling -->
2
- <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch.min.js"></script>
3
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch.min.css">
4
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch-theme-algolia.min.css">
5
-
6
- <script>
7
- // Instanciating InstantSearch.js with Algolia credentials
8
- const search = instantsearch({
9
- appId: '{{ site.algolia.application_id }}',
10
- apiKey: '{{ site.algolia.search_only_api_key }}',
11
- indexName: '{{ site.algolia.index_name }}',
12
- searchParameters: {
13
- restrictSearchableAttributes: [
14
- 'title',
15
- 'content'
16
- ]
17
- }
18
- });
19
-
20
- const hitTemplate = function(hit) {
21
- const url = hit.url;
22
- const title = hit._highlightResult.title.value;
23
- const content = hit._highlightResult.html.value;
24
-
25
- return `
26
- <div class="list__item">
27
- <article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
28
- <h2 class="archive__item-title" itemprop="headline"><a href="{{ site.baseurl }}${url}">${title}</a></h2>
29
- <div class="archive__item-excerpt" itemprop="description">${content}</div>
30
- </article>
31
- </div>
32
- `;
33
- }
34
-
35
- // Adding searchbar and results widgets
36
- search.addWidget(
37
- instantsearch.widgets.searchBox({
38
- container: '.search-searchbar',
39
- {% unless site.algolia.powered_by == false %}poweredBy: true,{% endunless %}
40
- placeholder: '{{ site.data.ui-text[site.locale].search_placeholder_text | default: "Enter your search term..." }}'
41
- })
42
- );
43
- search.addWidget(
44
- instantsearch.widgets.hits({
45
- container: '.search-hits',
46
- templates: {
47
- item: hitTemplate
48
- }
49
- })
50
- );
51
-
52
- // Starting the search
53
- search.start();
54
- </script>
1
+ <!-- Including InstantSearch.js library and styling -->
2
+ <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch.min.js"></script>
3
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch.min.css">
4
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.3.3/dist/instantsearch-theme-algolia.min.css">
5
+
6
+ <script>
7
+ // Instanciating InstantSearch.js with Algolia credentials
8
+ const search = instantsearch({
9
+ appId: '{{ site.algolia.application_id }}',
10
+ apiKey: '{{ site.algolia.search_only_api_key }}',
11
+ indexName: '{{ site.algolia.index_name }}',
12
+ searchParameters: {
13
+ restrictSearchableAttributes: [
14
+ 'title',
15
+ 'content'
16
+ ]
17
+ }
18
+ });
19
+
20
+ const hitTemplate = function(hit) {
21
+ const url = hit.url;
22
+ const title = hit._highlightResult.title.value;
23
+ const content = hit._highlightResult.html.value;
24
+
25
+ return `
26
+ <div class="list__item">
27
+ <article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
28
+ <h2 class="archive__item-title" itemprop="headline"><a href="{{ site.baseurl }}${url}">${title}</a></h2>
29
+ <div class="archive__item-excerpt" itemprop="description">${content}</div>
30
+ </article>
31
+ </div>
32
+ `;
33
+ }
34
+
35
+ // Adding searchbar and results widgets
36
+ search.addWidget(
37
+ instantsearch.widgets.searchBox({
38
+ container: '.search-searchbar',
39
+ {% unless site.algolia.powered_by == false %}poweredBy: true,{% endunless %}
40
+ placeholder: '{{ site.data.ui-text[site.locale].search_placeholder_text | default: "Enter your search term..." }}'
41
+ })
42
+ );
43
+ search.addWidget(
44
+ instantsearch.widgets.hits({
45
+ container: '.search-hits',
46
+ templates: {
47
+ item: hitTemplate
48
+ }
49
+ })
50
+ );
51
+
52
+ // Starting the search
53
+ search.start();
54
+ </script>