jekyll-theme-so-simple 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/LICENSE +49 -49
  4. data/README.md +15 -2
  5. data/_data/authors.yml +16 -16
  6. data/_data/navigation.yml +16 -14
  7. data/_data/text.yml +36 -36
  8. data/_includes/disqus-comments.html +19 -19
  9. data/_includes/documents-collection.html +19 -19
  10. data/_includes/entry-date.html +6 -6
  11. data/_includes/entry.html +41 -39
  12. data/_includes/footer-custom.html +3 -3
  13. data/_includes/footer.html +24 -24
  14. data/_includes/google-analytics.html +9 -9
  15. data/_includes/head-custom.html +5 -5
  16. data/_includes/head-feed.html +1 -1
  17. data/_includes/head-seo.html +1 -1
  18. data/_includes/head.html +50 -50
  19. data/_includes/lunr-search-scripts.html +106 -106
  20. data/_includes/masthead.html +13 -13
  21. data/_includes/navigation.html +17 -17
  22. data/_includes/page-author.html +37 -37
  23. data/_includes/page-categories.html +14 -14
  24. data/_includes/page-date.html +4 -4
  25. data/_includes/page-image.html +14 -14
  26. data/_includes/page-pagination.html +19 -19
  27. data/_includes/page-tags.html +14 -14
  28. data/_includes/posts-all.html +3 -3
  29. data/_includes/posts-category.html +3 -3
  30. data/_includes/posts-paginated.html +74 -74
  31. data/_includes/posts-tag.html +3 -3
  32. data/_includes/read-time.html +16 -16
  33. data/_includes/responsive-embed +16 -16
  34. data/_includes/scripts.html +1 -3
  35. data/_includes/skip-links.html +8 -8
  36. data/_includes/social-share.html +6 -6
  37. data/_includes/toc +9 -9
  38. data/_layouts/categories.html +48 -48
  39. data/_layouts/category.html +9 -9
  40. data/_layouts/collection.html +9 -9
  41. data/_layouts/default.html +1 -1
  42. data/_layouts/home.html +17 -17
  43. data/_layouts/page.html +30 -30
  44. data/_layouts/post.html +41 -41
  45. data/_layouts/posts.html +29 -29
  46. data/_layouts/search.html +1 -1
  47. data/_layouts/tag.html +9 -9
  48. data/_layouts/tags.html +48 -48
  49. data/_sass/so-simple.scss +1 -1
  50. data/_sass/so-simple/_author.scss +45 -45
  51. data/_sass/so-simple/_base.scss +112 -112
  52. data/_sass/so-simple/_buttons.scss +92 -92
  53. data/_sass/so-simple/_entries.scss +182 -182
  54. data/_sass/so-simple/_functions.scss +4 -4
  55. data/_sass/so-simple/_global.scss +393 -393
  56. data/_sass/so-simple/_icons.scss +43 -43
  57. data/_sass/so-simple/_mixins.scss +5 -5
  58. data/_sass/so-simple/_notices.scss +93 -93
  59. data/_sass/so-simple/_page.scss +287 -282
  60. data/_sass/so-simple/_reset.scss +523 -523
  61. data/_sass/so-simple/_syntax-highlighting.scss +334 -334
  62. data/_sass/so-simple/_tables.scss +34 -34
  63. data/_sass/so-simple/_utilities.scss +7 -7
  64. data/_sass/so-simple/_variables.scss +132 -132
  65. data/_sass/so-simple/functions/_color.scss +21 -21
  66. data/_sass/so-simple/functions/_em.scss +7 -7
  67. data/_sass/so-simple/functions/_fluid-type.scss +33 -33
  68. data/_sass/so-simple/functions/_yiq.scss +38 -38
  69. data/_sass/so-simple/mixins/_clearfix.scss +32 -32
  70. data/_sass/so-simple/mixins/_float.scss +15 -15
  71. data/_sass/so-simple/mixins/_image.scss +38 -38
  72. data/_sass/so-simple/mixins/_lists.scss +9 -9
  73. data/_sass/so-simple/mixins/_text-truncate.scss +10 -10
  74. data/_sass/so-simple/utilities/_accessibility.scss +43 -43
  75. data/_sass/so-simple/utilities/_align.scss +60 -60
  76. data/_sass/so-simple/utilities/_animations.scss +99 -99
  77. data/_sass/so-simple/utilities/_clearfix.scss +7 -7
  78. data/_sass/so-simple/utilities/_float.scss +7 -7
  79. data/_sass/so-simple/utilities/_responsive-embed.scss +66 -66
  80. data/_sass/so-simple/utilities/_text.scss +48 -48
  81. data/_sass/so-simple/vendor/breakpoint/_breakpoint.scss +114 -114
  82. data/_sass/so-simple/vendor/breakpoint/_context.scss +94 -94
  83. data/_sass/so-simple/vendor/breakpoint/_helpers.scss +151 -151
  84. data/_sass/so-simple/vendor/breakpoint/_legacy-settings.scss +49 -49
  85. data/_sass/so-simple/vendor/breakpoint/_no-query.scss +15 -15
  86. data/_sass/so-simple/vendor/breakpoint/_parsers.scss +215 -215
  87. data/_sass/so-simple/vendor/breakpoint/_respond-to.scss +82 -82
  88. data/_sass/so-simple/vendor/breakpoint/_settings.scss +70 -70
  89. data/_sass/so-simple/vendor/breakpoint/parsers/_double.scss +33 -33
  90. data/_sass/so-simple/vendor/breakpoint/parsers/_query.scss +82 -82
  91. data/_sass/so-simple/vendor/breakpoint/parsers/_resolution.scss +31 -31
  92. data/_sass/so-simple/vendor/breakpoint/parsers/_single.scss +26 -26
  93. data/_sass/so-simple/vendor/breakpoint/parsers/_triple.scss +36 -36
  94. data/_sass/so-simple/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
  95. data/_sass/so-simple/vendor/breakpoint/parsers/double/_default.scss +22 -22
  96. data/_sass/so-simple/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
  97. data/_sass/so-simple/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
  98. data/_sass/so-simple/vendor/breakpoint/parsers/single/_default.scss +13 -13
  99. data/_sass/so-simple/vendor/breakpoint/parsers/triple/_default.scss +18 -18
  100. data/_sass/so-simple/vendor/lity/_lity.scss +221 -221
  101. data/assets/css/main.scss +7 -7
  102. data/assets/js/lunr/lunr.da.min.js +17 -17
  103. data/assets/js/lunr/lunr.de.min.js +17 -17
  104. data/assets/js/lunr/lunr.du.min.js +17 -17
  105. data/assets/js/lunr/lunr.es.min.js +17 -17
  106. data/assets/js/lunr/lunr.fi.min.js +17 -17
  107. data/assets/js/lunr/lunr.fr.min.js +17 -17
  108. data/assets/js/lunr/lunr.hu.min.js +17 -17
  109. data/assets/js/lunr/lunr.it.min.js +17 -17
  110. data/assets/js/lunr/lunr.jp.min.js +1 -1
  111. data/assets/js/lunr/lunr.min.js +6 -6
  112. data/assets/js/lunr/lunr.no.min.js +17 -17
  113. data/assets/js/lunr/lunr.pt.min.js +17 -17
  114. data/assets/js/lunr/lunr.ro.min.js +17 -17
  115. data/assets/js/lunr/lunr.ru.min.js +17 -17
  116. data/assets/js/lunr/lunr.sv.min.js +17 -17
  117. data/assets/js/lunr/lunr.tr.min.js +17 -17
  118. data/assets/js/main.js +17 -15
  119. data/assets/js/main.min.js +2 -2
  120. data/assets/js/plugins/jquery.smooth-scroll.js +358 -358
  121. data/assets/js/plugins/jquery.smooth-scroll.min.js +8 -8
  122. data/assets/js/plugins/lity.js +655 -655
  123. data/assets/js/plugins/lity.min.js +4 -4
  124. data/assets/js/plugins/table-of-contents.js +59 -59
  125. data/assets/js/search-data.json +43 -27
  126. metadata +3 -3
@@ -1,37 +1,37 @@
1
- {%- assign author = page.author | default: page.authors[0] | default: site.author -%}
2
- {%- assign author = site.data.authors[author] | default: author -%}
3
-
4
- <div class="page-author h-card p-author">
5
- {%- if author.picture -%}
6
- {%- if author.picture contains "://" -%}
7
- {%- assign author_picture = author.picture -%}
8
- {%- else -%}
9
- {%- assign author_picture = author.picture | relative_url -%}
10
- {%- endif -%}
11
- <img src="{{ author_picture }}" class="author-avatar u-photo" alt="{{ author.name }}">
12
- {%- endif -%}
13
-
14
- <div class="author-info">
15
- {%- if author.name -%}
16
- <div class="author-name">
17
- {% if site.data.text[site.locale].by %}<em>{{ site.data.text[site.locale].by }}</em> {% endif %}<span class="p-name">{{ author.name }}</span>
18
- </div>
19
- {%- endif -%}
20
- {%- if author.links[1] -%}
21
- <ul class="author-links">
22
- {%- for link in author.links -%}
23
- {%- if link.url contains "://" -%}
24
- {%- assign url = link.url -%}
25
- {%- else -%}
26
- {%- assign url = link.url | relative_url -%}
27
- {%- endif -%}
28
- <li class="author-link">
29
- <a class="u-url" rel="me" href="{{ url }}"><i class="{{ link.icon | default : 'fas fa-link' }} fa-lg" title="{{ link.title }}"></i></a>
30
- </li>
31
- {%- endfor -%}
32
- </ul>
33
- {%- endif -%}
34
- {% if site.read_time %}{% include read-time.html %}{% endif %}
35
- {% if page.date %}{% include page-date.html %}{% endif %}
36
- </div>
37
- </div>
1
+ {%- assign author = page.author | default: page.authors[0] | default: site.author -%}
2
+ {%- assign author = site.data.authors[author] | default: author -%}
3
+
4
+ <div class="page-author h-card p-author">
5
+ {%- if author.picture -%}
6
+ {%- if author.picture contains "://" -%}
7
+ {%- assign author_picture = author.picture -%}
8
+ {%- else -%}
9
+ {%- assign author_picture = author.picture | relative_url -%}
10
+ {%- endif -%}
11
+ <img src="{{ author_picture }}" class="author-avatar u-photo" alt="{{ author.name }}">
12
+ {%- endif -%}
13
+
14
+ <div class="author-info">
15
+ {%- if author.name -%}
16
+ <div class="author-name">
17
+ {% if site.data.text[site.locale].by %}<em>{{ site.data.text[site.locale].by }}</em> {% endif %}<span class="p-name">{{ author.name }}</span>
18
+ </div>
19
+ {%- endif -%}
20
+ {%- if author.links -%}
21
+ <ul class="author-links">
22
+ {%- for link in author.links -%}
23
+ {%- if link.url contains "://" -%}
24
+ {%- assign url = link.url -%}
25
+ {%- else -%}
26
+ {%- assign url = link.url | relative_url -%}
27
+ {%- endif -%}
28
+ <li class="author-link">
29
+ <a class="u-url" rel="me" href="{{ url }}"><i class="{{ link.icon | default : 'fas fa-link' }} fa-lg" title="{{ link.title }}"></i></a>
30
+ </li>
31
+ {%- endfor -%}
32
+ </ul>
33
+ {%- endif -%}
34
+ {% if site.read_time %}{% include read-time.html %}{% endif %}
35
+ {% if page.date %}{% include page-date.html %}{% endif %}
36
+ </div>
37
+ </div>
@@ -1,14 +1,14 @@
1
- {% if page.categories.size > 0 %}
2
- <h3 class="page-taxonomies-title">{{ site.data.text[site.locale].categories | default: 'Categories' }}</h3>
3
- <ul class="page-taxonomies">
4
- {%- for category in page.categories -%}
5
- <li class="page-taxonomy">
6
- {%- if site.category_archive_path -%}
7
- <a class="p-category" href="{{ category | slugify | prepend: site.category_archive_path | relative_url }}" title="{{ site.data.text[site.locale].pages_categorized | default: 'Pages filed under' }} {{ category }}">{{ category }}</a>
8
- {%- else -%}
9
- {{ category }}
10
- {%- endif -%}
11
- </li>
12
- {%- endfor- %}
13
- </ul>
14
- {% endif %}
1
+ {% if page.categories.size > 0 %}
2
+ <h3 class="page-taxonomies-title">{{ site.data.text[site.locale].categories | default: 'Categories' }}</h3>
3
+ <ul class="page-taxonomies">
4
+ {%- for category in page.categories -%}
5
+ <li class="page-taxonomy">
6
+ {%- if site.category_archive_path -%}
7
+ <a class="p-category" href="{{ category | slugify | prepend: site.category_archive_path | relative_url }}" title="{{ site.data.text[site.locale].pages_categorized | default: 'Pages filed under' }} {{ category }}">{{ category }}</a>
8
+ {%- else -%}
9
+ {{ category }}
10
+ {%- endif -%}
11
+ </li>
12
+ {%- endfor- %}
13
+ </ul>
14
+ {% endif %}
@@ -1,4 +1,4 @@
1
- <time class="page-date dt-published" datetime="{{ page.date | date_to_xmlschema }}">
2
- {%- assign date_format = site.date_format | default: "%B %-d, %Y" -%}
3
- <a class="u-url" href="{{ entry.url | relative_url }}">{{ page.date | date: date_format }}</a>
4
- </time>
1
+ <time class="page-date dt-published" datetime="{{ page.date | date_to_xmlschema }}">
2
+ {%- assign date_format = site.date_format | default: "%B %-d, %Y" -%}
3
+ <a class="u-url" href="{{ entry.url | relative_url }}">{{ page.date | date: date_format }}</a>
4
+ </time>
@@ -1,14 +1,14 @@
1
- {% if page.image %}
2
- {% assign page_image = page.image.path | default: page.image %}
3
- {% unless page_image contains '://' %}
4
- {% assign page_image = page_image | relative_url %}
5
- {% endunless %}
6
- {% assign page_image = page_image | escape %}
7
-
8
- <div class="page-image">
9
- <img src="{{ page_image }}" class="entry-feature-image u-photo" alt="{{ page.title }}" {% unless site.logo %}style="margin-top: 0;"{% endunless %}>
10
- {% if page.image.caption %}
11
- <div class="page-image-caption">{{ page.image.caption | markdownify }}</div>
12
- {% endif %}
13
- </div>
14
- {% endif %}
1
+ {% if page.image %}
2
+ {% assign page_image = page.image.path | default: page.image %}
3
+ {% unless page_image contains '://' %}
4
+ {% assign page_image = page_image | relative_url %}
5
+ {% endunless %}
6
+ {% assign page_image = page_image | escape %}
7
+
8
+ <div class="page-image">
9
+ <img src="{{ page_image }}" class="entry-feature-image u-photo" alt="{{ page.title }}" {% unless site.logo %}style="margin-top: 0;"{% endunless %}>
10
+ {% if page.image.caption %}
11
+ <div class="page-image-caption">{{ page.image.caption | markdownify }}</div>
12
+ {% endif %}
13
+ </div>
14
+ {% endif %}
@@ -1,19 +1,19 @@
1
- <nav class="page-pagination" role="navigation">
2
- {% if page.previous %}
3
- <a class="page-previous" href="{{ page.previous.url | relative_url }}">
4
- <h4 class="page-pagination-label">{{ site.data.text[site.locale].previous | default: 'Previous' }}</h4>
5
- <span class="page-pagination-title">
6
- <i class="fas fa-arrow-left"></i> {{ page.previous.title | markdownify | strip_html }}
7
- </span>
8
- </a>
9
- {% endif %}
10
-
11
- {% if page.next %}
12
- <a class="page-next" href="{{ page.next.url | relative_url }}">
13
- <h4 class="page-pagination-label">{{ site.data.text[site.locale].next | default: 'Next' }}</h4>
14
- <span class="page-pagination-title">
15
- {{ page.next.title | markdownify | strip_html }} <i class="fas fa-arrow-right"></i>
16
- </span>
17
- </a>
18
- {% endif %}
19
- </nav>
1
+ <nav class="page-pagination" role="navigation">
2
+ {% if page.previous %}
3
+ <a class="page-previous" href="{{ page.previous.url | relative_url }}">
4
+ <h4 class="page-pagination-label">{{ site.data.text[site.locale].previous | default: 'Previous' }}</h4>
5
+ <span class="page-pagination-title">
6
+ <i class="fas fa-arrow-left"></i> {{ page.previous.title | markdownify | strip_html }}
7
+ </span>
8
+ </a>
9
+ {% endif %}
10
+
11
+ {% if page.next %}
12
+ <a class="page-next" href="{{ page.next.url | relative_url }}">
13
+ <h4 class="page-pagination-label">{{ site.data.text[site.locale].next | default: 'Next' }}</h4>
14
+ <span class="page-pagination-title">
15
+ {{ page.next.title | markdownify | strip_html }} <i class="fas fa-arrow-right"></i>
16
+ </span>
17
+ </a>
18
+ {% endif %}
19
+ </nav>
@@ -1,14 +1,14 @@
1
- {% if page.tags.size > 0 %}
2
- <h3 class="page-taxonomies-title">{{ site.data.text[site.locale].tags | default: 'Tags' }}</h3>
3
- <ul class="page-taxonomies">
4
- {%- for tag in page.tags -%}
5
- <li class="page-taxonomy">
6
- {%- if site.tag_archive_path -%}
7
- <a href="{{ tag | slugify | prepend: site.tag_archive_path | relative_url }}" title="{{ site.data.text[site.locale].pages_tagged | default: 'Pages tagged' }} {{ tag }}" rel="tag">{{ tag }}</a>
8
- {%- else -%}
9
- {{ tag }}
10
- {%- endif -%}
11
- </li>
12
- {%- endfor- %}
13
- </ul>
14
- {% endif %}
1
+ {% if page.tags.size > 0 %}
2
+ <h3 class="page-taxonomies-title">{{ site.data.text[site.locale].tags | default: 'Tags' }}</h3>
3
+ <ul class="page-taxonomies">
4
+ {%- for tag in page.tags -%}
5
+ <li class="page-taxonomy">
6
+ {%- if site.tag_archive_path -%}
7
+ <a href="{{ tag | slugify | prepend: site.tag_archive_path | relative_url }}" title="{{ site.data.text[site.locale].pages_tagged | default: 'Pages tagged' }} {{ tag }}" rel="tag">{{ tag }}</a>
8
+ {%- else -%}
9
+ {{ tag }}
10
+ {%- endif -%}
11
+ </li>
12
+ {%- endfor- %}
13
+ </ul>
14
+ {% endif %}
@@ -1,3 +1,3 @@
1
- {%- for entry in site.posts -%}
2
- {% include entry.html %}
3
- {%- endfor -%}
1
+ {%- for entry in site.posts -%}
2
+ {% include entry.html %}
3
+ {%- endfor -%}
@@ -1,3 +1,3 @@
1
- {%- for entry in site.categories[include.taxonomy] -%}
2
- {% include entry.html %}
3
- {%- endfor -%}
1
+ {%- for entry in site.categories[include.taxonomy] -%}
2
+ {% include entry.html %}
3
+ {%- endfor -%}
@@ -1,74 +1,74 @@
1
- {%- for entry in paginator.posts -%}
2
- {% include entry.html %}
3
- {%- endfor -%}
4
-
5
- <!-- Pagination links -->
6
- {% if paginator.total_pages > 1 %}
7
- <nav class="pagination">
8
- {% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
9
- <ul>
10
- {% comment %} Link for previous page {% endcomment %}
11
- {% if paginator.previous_page %}
12
- {% if paginator.previous_page == 1 %}
13
- <li><a href="{{ first_page_path }}">{{ site.data.text[site.locale].previous | default: "Previous" }}</a></li>
14
- {% else %}
15
- <li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | relative_url }}">{{ site.data.text[site.locale].previous | default: "Previous" }}</a></li>
16
- {% endif %}
17
- {% else %}
18
- <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.text[site.locale].previous | default: "Previous" }}</span></a></li>
19
- {% endif %}
20
-
21
- {% comment %} First page {% endcomment %}
22
- {% if paginator.page == 1 %}
23
- <li><a href="#" class="disabled current">1</a></li>
24
- {% else %}
25
- <li><a href="{{ first_page_path }}">1</a></li>
26
- {% endif %}
27
-
28
- {% assign page_start = 2 %}
29
- {% if paginator.page > 4 %}
30
- {% assign page_start = paginator.page | minus: 2 %}
31
- {% comment %} Ellipsis for truncated links {% endcomment %}
32
- <li><a href="#" class="disabled">&hellip;</a></li>
33
- {% endif %}
34
-
35
- {% assign page_end = paginator.total_pages | minus: 1 %}
36
- {% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
37
- {% if pages_to_end > 4 %}
38
- {% assign page_end = paginator.page | plus: 2 %}
39
- {% endif %}
40
-
41
- {% for index in (page_start..page_end) %}
42
- {% if index == paginator.page %}
43
- <li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | relative_url }}" class="disabled current">{{ index }}</a></li>
44
- {% else %}
45
- {% comment %} Distance from current page and this link {% endcomment %}
46
- {% assign dist = paginator.page | minus: index %}
47
- {% if dist < 0 %}
48
- {% comment %} Distance must be a positive value {% endcomment %}
49
- {% assign dist = 0 | minus: dist %}
50
- {% endif %}
51
- <li><a href="{{ site.paginate_path | replace: ':num', index | relative_url }}">{{ index }}</a></li>
52
- {% endif %}
53
- {% endfor %}
54
-
55
- {% comment %} Ellipsis for truncated links {% endcomment %}
56
- {% if pages_to_end > 3 %}
57
- <li><a href="#" class="disabled">&hellip;</a></li>
58
- {% endif %}
59
-
60
- {% if paginator.page == paginator.total_pages %}
61
- <li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
62
- {% else %}
63
- <li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | relative_url }}">{{ paginator.total_pages }}</a></li>
64
- {% endif %}
65
-
66
- {% comment %} Link next page {% endcomment %}
67
- {% if paginator.next_page %}
68
- <li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | relative_url }}">{{ site.data.text[site.locale].next | default: "Next" }}</a></li>
69
- {% else %}
70
- <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.text[site.locale].next | default: "Next" }}</span></a></li>
71
- {% endif %}
72
- </ul>
73
- </nav>
74
- {% endif %}
1
+ {%- for entry in paginator.posts -%}
2
+ {% include entry.html %}
3
+ {%- endfor -%}
4
+
5
+ <!-- Pagination links -->
6
+ {% if paginator.total_pages > 1 %}
7
+ <nav class="pagination">
8
+ {% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
9
+ <ul>
10
+ {% comment %} Link for previous page {% endcomment %}
11
+ {% if paginator.previous_page %}
12
+ {% if paginator.previous_page == 1 %}
13
+ <li><a href="{{ first_page_path }}">{{ site.data.text[site.locale].previous | default: "Previous" }}</a></li>
14
+ {% else %}
15
+ <li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | relative_url }}">{{ site.data.text[site.locale].previous | default: "Previous" }}</a></li>
16
+ {% endif %}
17
+ {% else %}
18
+ <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.text[site.locale].previous | default: "Previous" }}</span></a></li>
19
+ {% endif %}
20
+
21
+ {% comment %} First page {% endcomment %}
22
+ {% if paginator.page == 1 %}
23
+ <li><a href="#" class="disabled current">1</a></li>
24
+ {% else %}
25
+ <li><a href="{{ first_page_path }}">1</a></li>
26
+ {% endif %}
27
+
28
+ {% assign page_start = 2 %}
29
+ {% if paginator.page > 4 %}
30
+ {% assign page_start = paginator.page | minus: 2 %}
31
+ {% comment %} Ellipsis for truncated links {% endcomment %}
32
+ <li><a href="#" class="disabled">&hellip;</a></li>
33
+ {% endif %}
34
+
35
+ {% assign page_end = paginator.total_pages | minus: 1 %}
36
+ {% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
37
+ {% if pages_to_end > 4 %}
38
+ {% assign page_end = paginator.page | plus: 2 %}
39
+ {% endif %}
40
+
41
+ {% for index in (page_start..page_end) %}
42
+ {% if index == paginator.page %}
43
+ <li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | relative_url }}" class="disabled current">{{ index }}</a></li>
44
+ {% else %}
45
+ {% comment %} Distance from current page and this link {% endcomment %}
46
+ {% assign dist = paginator.page | minus: index %}
47
+ {% if dist < 0 %}
48
+ {% comment %} Distance must be a positive value {% endcomment %}
49
+ {% assign dist = 0 | minus: dist %}
50
+ {% endif %}
51
+ <li><a href="{{ site.paginate_path | replace: ':num', index | relative_url }}">{{ index }}</a></li>
52
+ {% endif %}
53
+ {% endfor %}
54
+
55
+ {% comment %} Ellipsis for truncated links {% endcomment %}
56
+ {% if pages_to_end > 3 %}
57
+ <li><a href="#" class="disabled">&hellip;</a></li>
58
+ {% endif %}
59
+
60
+ {% if paginator.page == paginator.total_pages %}
61
+ <li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
62
+ {% else %}
63
+ <li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | relative_url }}">{{ paginator.total_pages }}</a></li>
64
+ {% endif %}
65
+
66
+ {% comment %} Link next page {% endcomment %}
67
+ {% if paginator.next_page %}
68
+ <li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | relative_url }}">{{ site.data.text[site.locale].next | default: "Next" }}</a></li>
69
+ {% else %}
70
+ <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.text[site.locale].next | default: "Next" }}</span></a></li>
71
+ {% endif %}
72
+ </ul>
73
+ </nav>
74
+ {% endif %}
@@ -1,3 +1,3 @@
1
- {%- for entry in site.tags[include.taxonomy] -%}
2
- {% include entry.html %}
3
- {%- endfor -%}
1
+ {%- for entry in site.tags[include.taxonomy] -%}
2
+ {% include entry.html %}
3
+ {%- endfor -%}
@@ -1,16 +1,16 @@
1
- {%- assign words_per_minute = site.words_per_minute | default: 200 -%}
2
- {%- assign min_read = site.data.text[site.locale].min_read | default: 'min read' -%}
3
-
4
- {% if entry %}
5
- {% assign words = entry.content | strip_html | number_of_words %}
6
- {% else %}
7
- {% assign words = page.content | strip_html | number_of_words %}
8
- {% endif %}
9
-
10
- <span class="read-time">
11
- {%- if words < words_per_minute -%}
12
- ~1 {{ min_read }}
13
- {%- else -%}
14
- {{ words | divided_by:words_per_minute }} {{ min_read }}
15
- {%- endif -%}
16
- </span>
1
+ {%- assign words_per_minute = site.words_per_minute | default: 200 -%}
2
+ {%- assign min_read = site.data.text[site.locale].min_read | default: 'min read' -%}
3
+
4
+ {% if entry %}
5
+ {% assign words = entry.content | strip_html | number_of_words %}
6
+ {% else %}
7
+ {% assign words = page.content | strip_html | number_of_words %}
8
+ {% endif %}
9
+
10
+ <span class="read-time">
11
+ {%- if words < words_per_minute -%}
12
+ ~1 {{ min_read }}
13
+ {%- else -%}
14
+ {{ words | divided_by:words_per_minute }} {{ min_read }}
15
+ {%- endif -%}
16
+ </span>
@@ -1,16 +1,16 @@
1
- {%- case include.ratio -%}
2
- {%- when '21:9' -%}
3
- {%- assign ratio_class = 'responsive-embed-21by9' -%}
4
- {%- when '16:9' -%}
5
- {%- assign ratio_class = 'responsive-embed-16by9' -%}
6
- {%- when '4:3' -%}
7
- {%- assign ratio_class = 'responsive-embed-4by3' -%}
8
- {%- when '1:1' -%}
9
- {%- assign ratio_class = 'responsive-embed-1by1' -%}
10
- {%- else -%}
11
- {%- assign ratio_class = 'responsive-embed-16by9' -%}
12
- {%- endcase -%}
13
-
14
- <div class="responsive-embed {{ ratio_class }}">
15
- <iframe src="{{ include.url }}" frameborder="0" allowfullscreen></iframe>
16
- </div>
1
+ {%- case include.ratio -%}
2
+ {%- when '21:9' -%}
3
+ {%- assign ratio_class = 'responsive-embed-21by9' -%}
4
+ {%- when '16:9' -%}
5
+ {%- assign ratio_class = 'responsive-embed-16by9' -%}
6
+ {%- when '4:3' -%}
7
+ {%- assign ratio_class = 'responsive-embed-4by3' -%}
8
+ {%- when '1:1' -%}
9
+ {%- assign ratio_class = 'responsive-embed-1by1' -%}
10
+ {%- else -%}
11
+ {%- assign ratio_class = 'responsive-embed-16by9' -%}
12
+ {%- endcase -%}
13
+
14
+ <div class="responsive-embed {{ ratio_class }}">
15
+ <iframe src="{{ include.url }}" frameborder="0" allowfullscreen></iframe>
16
+ </div>