minimal-mistakes-jekyll 4.9.0 → 4.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/LICENSE.txt +4 -0
  4. data/README.md +5 -0
  5. data/_data/navigation.yml +11 -11
  6. data/_data/ui-text.yml +983 -979
  7. data/_includes/analytics-providers/custom.html +2 -2
  8. data/_includes/analytics-providers/google-universal.html +9 -9
  9. data/_includes/analytics-providers/google.html +10 -10
  10. data/_includes/analytics.html +11 -11
  11. data/_includes/archive-single.html +37 -37
  12. data/_includes/author-profile-custom-links.html +6 -6
  13. data/_includes/author-profile.html +2 -5
  14. data/_includes/base_path +4 -4
  15. data/_includes/breadcrumbs.html +39 -39
  16. data/_includes/browser-upgrade.html +3 -3
  17. data/_includes/category-list.html +25 -25
  18. data/_includes/comment.html +22 -22
  19. data/_includes/comments-providers/custom.html +2 -2
  20. data/_includes/comments-providers/discourse.html +13 -13
  21. data/_includes/comments-providers/facebook.html +7 -7
  22. data/_includes/comments-providers/google-plus.html +1 -1
  23. data/_includes/comments-providers/staticman.html +41 -41
  24. data/_includes/comments-providers/staticman_v2.html +41 -41
  25. data/_includes/comments.html +168 -168
  26. data/_includes/feature_row +49 -49
  27. data/_includes/figure +12 -12
  28. data/_includes/footer.html +25 -25
  29. data/_includes/footer/custom.html +2 -2
  30. data/_includes/gallery +46 -46
  31. data/_includes/group-by-array +46 -46
  32. data/_includes/head.html +42 -42
  33. data/_includes/head/custom.html +4 -4
  34. data/_includes/masthead.html +1 -1
  35. data/_includes/nav_list +46 -46
  36. data/_includes/page__hero.html +61 -61
  37. data/_includes/page__hero_video.html +4 -4
  38. data/_includes/page__taxonomy.html +6 -6
  39. data/_includes/paginator.html +69 -69
  40. data/_includes/post_pagination.html +13 -13
  41. data/_includes/read-time.html +14 -14
  42. data/_includes/scripts.html +29 -29
  43. data/_includes/search_form.html +3 -3
  44. data/_includes/seo.html +166 -162
  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 +32 -32
  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 -310
  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/_navigation.scss +10 -0
  66. data/_sass/minimal-mistakes/_notices.scss +99 -99
  67. data/_sass/minimal-mistakes/_page.scss +452 -426
  68. data/_sass/minimal-mistakes/_reset.scss +186 -186
  69. data/_sass/minimal-mistakes/_search.scss +107 -107
  70. data/_sass/minimal-mistakes/_sidebar.scss +297 -274
  71. data/_sass/minimal-mistakes/_syntax.scss +10 -2
  72. data/_sass/minimal-mistakes/_tables.scss +36 -36
  73. data/_sass/minimal-mistakes/_utilities.scss +520 -520
  74. data/_sass/minimal-mistakes/_variables.scss +153 -153
  75. data/_sass/minimal-mistakes/skins/_air.scss +23 -23
  76. data/_sass/minimal-mistakes/skins/_aqua.scss +29 -29
  77. data/_sass/minimal-mistakes/skins/_contrast.scss +51 -51
  78. data/_sass/minimal-mistakes/skins/_dark.scss +42 -41
  79. data/_sass/minimal-mistakes/skins/_default.scss +5 -5
  80. data/_sass/minimal-mistakes/skins/_dirt.scss +33 -33
  81. data/_sass/minimal-mistakes/skins/_mint.scss +23 -23
  82. data/_sass/minimal-mistakes/skins/_neon.scss +53 -53
  83. data/_sass/minimal-mistakes/skins/_plum.scss +60 -60
  84. data/_sass/minimal-mistakes/skins/_sunrise.scss +44 -44
  85. data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -114
  86. data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +94 -94
  87. data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -151
  88. data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +49 -49
  89. data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -15
  90. data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -215
  91. data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -82
  92. data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +70 -70
  93. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -33
  94. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -82
  95. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -31
  96. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -26
  97. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -36
  98. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
  99. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -22
  100. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
  101. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
  102. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -13
  103. data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -18
  104. data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -649
  105. data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +45 -45
  106. data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -13
  107. data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -5
  108. data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -5
  109. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -7
  110. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -114
  111. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -67
  112. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -14
  113. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -18
  114. data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -133
  115. data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -318
  116. data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -261
  117. data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -163
  118. data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -329
  119. data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -441
  120. data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -213
  121. data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -191
  122. data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -56
  123. data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -167
  124. data/assets/css/main.scss +7 -7
  125. data/assets/js/_main.js +106 -106
  126. data/assets/js/lunr/lunr-en.js +75 -75
  127. data/assets/js/lunr/lunr-gr.js +528 -528
  128. data/assets/js/lunr/lunr-store.js +36 -36
  129. data/assets/js/lunr/lunr.js +2977 -0
  130. data/assets/js/lunr/lunr.min.js +1 -2972
  131. data/assets/js/main.min.js +5 -5
  132. data/assets/js/plugins/jquery.fitvids.js +81 -81
  133. data/assets/js/plugins/jquery.greedy-navigation.js +1 -1
  134. metadata +4 -3
@@ -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,29 +1,29 @@
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 defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script>
13
- {% endif %}
14
-
15
- {% if site.search == true or page.layout == "search" %}
16
- {% assign lang = site.locale | slice: 0,2 | default: "en" %}
17
- {% case lang %}
18
- {% when "gr" %}
19
- {% assign lang = "gr" %}
20
- {% else %}
21
- {% assign lang = "en" %}
22
- {% endcase %}
23
- <script defer src="{{ '/assets/js/lunr/lunr.min.js' | absolute_url }}"></script>
24
- <script defer src="{{ '/assets/js/lunr/lunr-store.js' | absolute_url }}"></script>
25
- <script defer src="{{ '/assets/js/lunr/lunr-' | append: lang | append: '.js' | absolute_url }}"></script>
26
- {% endif %}
27
-
28
- {% include analytics.html %}
29
- {% 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.6/js/all.js"></script>
13
+ {% endif %}
14
+
15
+ {% if site.search == true or page.layout == "search" %}
16
+ {% assign lang = site.locale | slice: 0,2 | default: "en" %}
17
+ {% case lang %}
18
+ {% when "gr" %}
19
+ {% assign lang = "gr" %}
20
+ {% else %}
21
+ {% assign lang = "en" %}
22
+ {% endcase %}
23
+ <script src="{{ '/assets/js/lunr/lunr.min.js' | absolute_url }}"></script>
24
+ <script src="{{ '/assets/js/lunr/lunr-store.js' | absolute_url }}"></script>
25
+ <script src="{{ '/assets/js/lunr/lunr-' | append: lang | append: '.js' | absolute_url }}"></script>
26
+ {% endif %}
27
+
28
+ {% include analytics.html %}
29
+ {% include /comments-providers/scripts.html %}
@@ -1,4 +1,4 @@
1
- <div class="search-content__inner-wrap">
2
- <input type="text" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
3
- <div id="results" class="results"></div>
1
+ <div class="search-content__inner-wrap">
2
+ <input type="text" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
3
+ <div id="results" class="results"></div>
4
4
  </div>
data/_includes/seo.html CHANGED
@@ -1,162 +1,166 @@
1
- <!-- begin SEO -->
2
- {% if site.url %}
3
- {% assign seo_url = site.url | append: site.baseurl %}
4
- {% endif %}
5
- {% assign seo_url = seo_url | default: site.github.url %}
6
-
7
- {% if page.title %}
8
- {% assign seo_title = page.title | append: " " | append: site.title_separator | append: " " | append: site.title %}
9
- {% endif %}
10
-
11
- {% if seo_title %}
12
- {% assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once %}
13
- {% endif %}
14
-
15
- {% if site.url %}
16
- {% assign canonical_url = page.url | replace: "index.html", "" | prepend: site.url %}
17
- {% endif %}
18
-
19
- <title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ site.title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
20
-
21
- {% assign seo_description = page.description | default: page.excerpt | default: site.description %}
22
- {% if seo_description %}
23
- {% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %}
24
- {% endif %}
25
-
26
- <meta name="description" content="{{ seo_description }}">
27
-
28
- {% assign seo_author = page.author | default: page.author[0] | default: site.author.name %}
29
- {% if seo_author %}
30
- {% if seo_author.twitter %}
31
- {% assign seo_author_twitter = seo_author.twitter %}
32
- {% else %}
33
- {% if site.data.authors and site.data.authors[seo_author] %}
34
- {% assign seo_author_twitter = site.data.authors[seo_author].twitter %}
35
- {% else %}
36
- {% assign seo_author_twitter = seo_author %}
37
- {% endif %}
38
- {% endif %}
39
- {% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
40
- {% endif %}
41
-
42
- <meta name="author" content="{{ seo_author }}">
43
-
44
- <meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
45
- <meta property="og:site_name" content="{{ site.title }}">
46
- <meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
47
-
48
- {% if seo_url %}
49
- <link rel="canonical" href="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
50
- <meta property="og:url" content="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
51
- {% endif %}
52
-
53
- {% if page.excerpt %}
54
- <meta property="og:description" content="{{ seo_description }}">
55
- {% endif %}
56
-
57
- {% assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image %}
58
- {% unless page_large_image contains '://' %}
59
- {% assign page_large_image = page_large_image | absolute_url %}
60
- {% endunless %}
61
- {% assign page_large_image = page_large_image | escape %}
62
-
63
- {% assign page_teaser_image = page.header.teaser | default: site.og_image %}
64
- {% unless page_teaser_image contains '://' %}
65
- {% assign page_teaser_image = page_teaser_image | absolute_url %}
66
- {% endunless %}
67
- {% assign page_teaser_image = page_teaser_image | escape %}
68
-
69
- {% assign site_og_image = site.og_image %}
70
- {% unless site_og_image contains '://' %}
71
- {% assign site_og_image = site_og_image | absolute_url %}
72
- {% endunless %}
73
- {% assign site_og_image = site_og_image | escape %}
74
-
75
- {% if site.twitter.username %}
76
- <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
77
- <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
78
- <meta name="twitter:description" content="{{ seo_description }}">
79
- <meta name="twitter:url" content="{{ canonical_url }}">
80
-
81
- {% if page_large_image %}
82
- <meta name="twitter:card" content="summary_large_image">
83
- <meta name="twitter:image" content="{{ page_large_image }}">
84
- {% else %}
85
- <meta name="twitter:card" content="summary">
86
- {% if page_teaser_image %}
87
- <meta name="twitter:image" content="{{ page_teaser_image }}">
88
- {% endif %}
89
- {% endif %}
90
-
91
- {% if seo_author_twitter %}
92
- <meta name="twitter:creator" content="@{{ seo_author_twitter }}">
93
- {% endif %}
94
- {% endif %}
95
-
96
- {% if site.facebook %}
97
- {% if site.facebook.publisher %}
98
- <meta property="article:publisher" content="{{ site.facebook.publisher }}">
99
- {% endif %}
100
-
101
- {% if site.facebook.app_id %}
102
- <meta property="fb:app_id" content="{{ site.facebook.app_id }}">
103
- {% endif %}
104
- {% endif %}
105
-
106
- {% if page_large_image %}
107
- <meta property="og:image" content="{{ page_large_image }}">
108
- {% elsif page_teaser_image %}
109
- <meta property="og:image" content="{{ page_teaser_image }}">
110
- {% endif %}
111
-
112
- {% if page.date %}
113
- <meta property="og:type" content="article">
114
- <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
115
- {% endif %}
116
-
117
- {% if paginator.previous_page %}
118
- <link rel="prev" href="{{ paginator.previous_page_path | prepend: seo_url }}">
119
- {% endif %}
120
- {% if paginator.next_page %}
121
- <link rel="next" href="{{ paginator.next_page_path | prepend: seo_url }}">
122
- {% endif %}
123
-
124
- {% if site.og_image %}
125
- <script type="application/ld+json">
126
- {
127
- "@context": "http://schema.org",
128
- "@type": "Organization",
129
- "url": {{ seo_url | jsonify }},
130
- "logo": {{ site_og_image | jsonify }}
131
- }
132
- </script>
133
- {% endif %}
134
-
135
- {% if site.social %}
136
- <script type="application/ld+json">
137
- {
138
- "@context" : "http://schema.org",
139
- "@type" : "{% if site.social.type %}{{ site.social.type }}{% else %}Person{% endif %}",
140
- "name" : "{{ site.social.name | default: site.name }}",
141
- "url" : {{ seo_url | jsonify }},
142
- "sameAs" : {{ site.social.links | jsonify }}
143
- }
144
- </script>
145
- {% endif %}
146
-
147
- {% if site.google_site_verification %}
148
- <meta name="google-site-verification" content="{{ site.google_site_verification }}" />
149
- {% endif %}
150
- {% if site.bing_site_verification %}
151
- <meta name="msvalidate.01" content="{{ site.bing_site_verification }}">
152
- {% endif %}
153
- {% if site.alexa_site_verification %}
154
- <meta name="alexaVerifyID" content="{{ site.alexa_site_verification }}">
155
- {% endif %}
156
- {% if site.yandex_site_verification %}
157
- <meta name="yandex-verification" content="{{ site.yandex_site_verification }}">
158
- {% endif %}
159
- {% if site.naver-site-verification %}
160
- <meta name="naver-site-verification" content="{{ site.naver-site-verification }}">
161
- {% endif %}
162
- <!-- end SEO -->
1
+ <!-- begin _includes/seo.html -->
2
+ {%- if site.url -%}
3
+ {%- assign seo_url = site.url | append: site.baseurl -%}
4
+ {%- endif -%}
5
+ {%- assign seo_url = seo_url | default: site.github.url -%}
6
+
7
+ {% if site.title_separator %}
8
+ {% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %}
9
+ {% endif %}
10
+
11
+ {%- if page.title -%}
12
+ {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
13
+ {%- endif -%}
14
+
15
+ {%- if seo_title -%}
16
+ {%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%}
17
+ {%- endif -%}
18
+
19
+ {%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %}
20
+
21
+ {%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
22
+ {%- if seo_description -%}
23
+ {%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
24
+ {%- endif -%}
25
+
26
+ {%- assign author = page.author | default: page.authors[0] | default: site:author -%}
27
+ {%- assign author = site.data.authors[author] | default: author -%}
28
+
29
+ {%- if author.twitter -%}
30
+ {%- assign author_twitter = author.twitter | replace: "@", "" -%}
31
+ {%- endif -%}
32
+
33
+ {%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image -%}
34
+ {%- unless page_large_image contains '://' -%}
35
+ {%- assign page_large_image = page_large_image | absolute_url -%}
36
+ {%- endunless -%}
37
+ {%- assign page_large_image = page_large_image | escape -%}
38
+
39
+ {%- assign page_teaser_image = page.header.teaser | default: site.og_image -%}
40
+ {%- unless page_teaser_image contains '://' -%}
41
+ {%- assign page_teaser_image = page_teaser_image | absolute_url -%}
42
+ {%- endunless -%}
43
+ {%- assign page_teaser_image = page_teaser_image | escape -%}
44
+
45
+ {%- assign site_og_image = site.og_image -%}
46
+ {%- unless site_og_image contains '://' -%}
47
+ {%- assign site_og_image = site_og_image | absolute_url -%}
48
+ {%- endunless -%}
49
+ {%- assign site_og_image = site_og_image | escape -%}
50
+
51
+ {%- if page.date -%}
52
+ {%- assign og_type = "article" -%}
53
+ {%- else -%}
54
+ {%- assign og_type = "website" -%}
55
+ {%- endif -%}
56
+
57
+ <title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
58
+ <meta name="description" content="{{ seo_description }}">
59
+
60
+ {% if author.name %}
61
+ <meta name="author" content="{{ author.name | default: author }}">
62
+ {% endif %}
63
+
64
+ <meta property="og:type" content="{{ og_type }}">
65
+ <meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
66
+ <meta property="og:site_name" content="{{ site.title }}">
67
+ <meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
68
+ <meta property="og:url" content="{{ canonical_url }}">
69
+
70
+ {% if page.excerpt %}
71
+ <meta property="og:description" content="{{ seo_description }}">
72
+ {% endif %}
73
+
74
+ {% if page_large_image %}
75
+ <meta property="og:image" content="{{ page_large_image }}">
76
+ {% elsif page_teaser_image %}
77
+ <meta property="og:image" content="{{ page_teaser_image }}">
78
+ {% endif %}
79
+
80
+ {% if site.twitter.username %}
81
+ <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
82
+ <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
83
+ <meta name="twitter:description" content="{{ seo_description }}">
84
+ <meta name="twitter:url" content="{{ canonical_url }}">
85
+
86
+ {% if page_large_image %}
87
+ <meta name="twitter:card" content="summary_large_image">
88
+ <meta name="twitter:image" content="{{ page_large_image }}">
89
+ {% else %}
90
+ <meta name="twitter:card" content="summary">
91
+ {% if page_teaser_image %}
92
+ <meta name="twitter:image" content="{{ page_teaser_image }}">
93
+ {% endif %}
94
+ {% endif %}
95
+
96
+ {% if author_twitter %}
97
+ <meta name="twitter:creator" content="@{{ author_twitter }}">
98
+ {% endif %}
99
+ {% endif %}
100
+
101
+ {% if page.date %}
102
+ <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
103
+ {% endif %}
104
+
105
+ {% if og_type == "article" and page.last_modified_at %}
106
+ <meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}">
107
+ {% endif %}
108
+
109
+ {% if site.facebook %}
110
+ {% if site.facebook.publisher %}
111
+ <meta property="article:publisher" content="{{ site.facebook.publisher }}">
112
+ {% endif %}
113
+
114
+ {% if site.facebook.app_id %}
115
+ <meta property="fb:app_id" content="{{ site.facebook.app_id }}">
116
+ {% endif %}
117
+ {% endif %}
118
+
119
+ <link rel="canonical" href="{{ canonical_url }}">
120
+
121
+ {% if paginator.previous_page %}
122
+ <link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}">
123
+ {% endif %}
124
+ {% if paginator.next_page %}
125
+ <link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
126
+ {% endif %}
127
+
128
+ {% if site.og_image %}
129
+ <script type="application/ld+json">
130
+ {
131
+ "@context": "http://schema.org",
132
+ "@type": "Organization",
133
+ "url": {{ seo_url | jsonify }},
134
+ "logo": {{ site_og_image | jsonify }}
135
+ }
136
+ </script>
137
+ {% endif %}
138
+
139
+ {% if site.social %}
140
+ <script type="application/ld+json">
141
+ {
142
+ "@context": "http://schema.org",
143
+ "@type": "{% if site.social.type %}{{ site.social.type }}{% else %}Person{% endif %}",
144
+ "name": {{ site.social.name | default: site.name | jsonify }},
145
+ "url": {{ seo_url | jsonify }},
146
+ "sameAs": {{ site.social.links | jsonify }}
147
+ }
148
+ </script>
149
+ {% endif %}
150
+
151
+ {% if site.google_site_verification %}
152
+ <meta name="google-site-verification" content="{{ site.google_site_verification }}" />
153
+ {% endif %}
154
+ {% if site.bing_site_verification %}
155
+ <meta name="msvalidate.01" content="{{ site.bing_site_verification }}">
156
+ {% endif %}
157
+ {% if site.alexa_site_verification %}
158
+ <meta name="alexaVerifyID" content="{{ site.alexa_site_verification }}">
159
+ {% endif %}
160
+ {% if site.yandex_site_verification %}
161
+ <meta name="yandex-verification" content="{{ site.yandex_site_verification }}">
162
+ {% endif %}
163
+ {% if site.naver-site-verification %}
164
+ <meta name="naver-site-verification" content="{{ site.naver-site-verification }}">
165
+ {% endif %}
166
+ <!-- end _includes/seo.html -->