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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/LICENSE +49 -49
- data/README.md +15 -2
- data/_data/authors.yml +16 -16
- data/_data/navigation.yml +16 -14
- data/_data/text.yml +36 -36
- data/_includes/disqus-comments.html +19 -19
- data/_includes/documents-collection.html +19 -19
- data/_includes/entry-date.html +6 -6
- data/_includes/entry.html +41 -39
- data/_includes/footer-custom.html +3 -3
- data/_includes/footer.html +24 -24
- data/_includes/google-analytics.html +9 -9
- data/_includes/head-custom.html +5 -5
- data/_includes/head-feed.html +1 -1
- data/_includes/head-seo.html +1 -1
- data/_includes/head.html +50 -50
- data/_includes/lunr-search-scripts.html +106 -106
- data/_includes/masthead.html +13 -13
- data/_includes/navigation.html +17 -17
- data/_includes/page-author.html +37 -37
- data/_includes/page-categories.html +14 -14
- data/_includes/page-date.html +4 -4
- data/_includes/page-image.html +14 -14
- data/_includes/page-pagination.html +19 -19
- data/_includes/page-tags.html +14 -14
- data/_includes/posts-all.html +3 -3
- data/_includes/posts-category.html +3 -3
- data/_includes/posts-paginated.html +74 -74
- data/_includes/posts-tag.html +3 -3
- data/_includes/read-time.html +16 -16
- data/_includes/responsive-embed +16 -16
- data/_includes/scripts.html +1 -3
- data/_includes/skip-links.html +8 -8
- data/_includes/social-share.html +6 -6
- data/_includes/toc +9 -9
- data/_layouts/categories.html +48 -48
- data/_layouts/category.html +9 -9
- data/_layouts/collection.html +9 -9
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +17 -17
- data/_layouts/page.html +30 -30
- data/_layouts/post.html +41 -41
- data/_layouts/posts.html +29 -29
- data/_layouts/search.html +1 -1
- data/_layouts/tag.html +9 -9
- data/_layouts/tags.html +48 -48
- data/_sass/so-simple.scss +1 -1
- data/_sass/so-simple/_author.scss +45 -45
- data/_sass/so-simple/_base.scss +112 -112
- data/_sass/so-simple/_buttons.scss +92 -92
- data/_sass/so-simple/_entries.scss +182 -182
- data/_sass/so-simple/_functions.scss +4 -4
- data/_sass/so-simple/_global.scss +393 -393
- data/_sass/so-simple/_icons.scss +43 -43
- data/_sass/so-simple/_mixins.scss +5 -5
- data/_sass/so-simple/_notices.scss +93 -93
- data/_sass/so-simple/_page.scss +287 -282
- data/_sass/so-simple/_reset.scss +523 -523
- data/_sass/so-simple/_syntax-highlighting.scss +334 -334
- data/_sass/so-simple/_tables.scss +34 -34
- data/_sass/so-simple/_utilities.scss +7 -7
- data/_sass/so-simple/_variables.scss +132 -132
- data/_sass/so-simple/functions/_color.scss +21 -21
- data/_sass/so-simple/functions/_em.scss +7 -7
- data/_sass/so-simple/functions/_fluid-type.scss +33 -33
- data/_sass/so-simple/functions/_yiq.scss +38 -38
- data/_sass/so-simple/mixins/_clearfix.scss +32 -32
- data/_sass/so-simple/mixins/_float.scss +15 -15
- data/_sass/so-simple/mixins/_image.scss +38 -38
- data/_sass/so-simple/mixins/_lists.scss +9 -9
- data/_sass/so-simple/mixins/_text-truncate.scss +10 -10
- data/_sass/so-simple/utilities/_accessibility.scss +43 -43
- data/_sass/so-simple/utilities/_align.scss +60 -60
- data/_sass/so-simple/utilities/_animations.scss +99 -99
- data/_sass/so-simple/utilities/_clearfix.scss +7 -7
- data/_sass/so-simple/utilities/_float.scss +7 -7
- data/_sass/so-simple/utilities/_responsive-embed.scss +66 -66
- data/_sass/so-simple/utilities/_text.scss +48 -48
- data/_sass/so-simple/vendor/breakpoint/_breakpoint.scss +114 -114
- data/_sass/so-simple/vendor/breakpoint/_context.scss +94 -94
- data/_sass/so-simple/vendor/breakpoint/_helpers.scss +151 -151
- data/_sass/so-simple/vendor/breakpoint/_legacy-settings.scss +49 -49
- data/_sass/so-simple/vendor/breakpoint/_no-query.scss +15 -15
- data/_sass/so-simple/vendor/breakpoint/_parsers.scss +215 -215
- data/_sass/so-simple/vendor/breakpoint/_respond-to.scss +82 -82
- data/_sass/so-simple/vendor/breakpoint/_settings.scss +70 -70
- data/_sass/so-simple/vendor/breakpoint/parsers/_double.scss +33 -33
- data/_sass/so-simple/vendor/breakpoint/parsers/_query.scss +82 -82
- data/_sass/so-simple/vendor/breakpoint/parsers/_resolution.scss +31 -31
- data/_sass/so-simple/vendor/breakpoint/parsers/_single.scss +26 -26
- data/_sass/so-simple/vendor/breakpoint/parsers/_triple.scss +36 -36
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_default.scss +22 -22
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
- data/_sass/so-simple/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
- data/_sass/so-simple/vendor/breakpoint/parsers/single/_default.scss +13 -13
- data/_sass/so-simple/vendor/breakpoint/parsers/triple/_default.scss +18 -18
- data/_sass/so-simple/vendor/lity/_lity.scss +221 -221
- data/assets/css/main.scss +7 -7
- data/assets/js/lunr/lunr.da.min.js +17 -17
- data/assets/js/lunr/lunr.de.min.js +17 -17
- data/assets/js/lunr/lunr.du.min.js +17 -17
- data/assets/js/lunr/lunr.es.min.js +17 -17
- data/assets/js/lunr/lunr.fi.min.js +17 -17
- data/assets/js/lunr/lunr.fr.min.js +17 -17
- data/assets/js/lunr/lunr.hu.min.js +17 -17
- data/assets/js/lunr/lunr.it.min.js +17 -17
- data/assets/js/lunr/lunr.jp.min.js +1 -1
- data/assets/js/lunr/lunr.min.js +6 -6
- data/assets/js/lunr/lunr.no.min.js +17 -17
- data/assets/js/lunr/lunr.pt.min.js +17 -17
- data/assets/js/lunr/lunr.ro.min.js +17 -17
- data/assets/js/lunr/lunr.ru.min.js +17 -17
- data/assets/js/lunr/lunr.sv.min.js +17 -17
- data/assets/js/lunr/lunr.tr.min.js +17 -17
- data/assets/js/main.js +17 -15
- data/assets/js/main.min.js +2 -2
- data/assets/js/plugins/jquery.smooth-scroll.js +358 -358
- data/assets/js/plugins/jquery.smooth-scroll.min.js +8 -8
- data/assets/js/plugins/lity.js +655 -655
- data/assets/js/plugins/lity.min.js +4 -4
- data/assets/js/plugins/table-of-contents.js +59 -59
- data/assets/js/search-data.json +43 -27
- metadata +3 -3
data/_includes/page-author.html
CHANGED
@@ -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
|
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 %}
|
data/_includes/page-date.html
CHANGED
@@ -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>
|
data/_includes/page-image.html
CHANGED
@@ -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>
|
data/_includes/page-tags.html
CHANGED
@@ -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 %}
|
data/_includes/posts-all.html
CHANGED
@@ -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">…</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">…</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">…</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">…</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 %}
|
data/_includes/posts-tag.html
CHANGED
@@ -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 -%}
|
data/_includes/read-time.html
CHANGED
@@ -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>
|
data/_includes/responsive-embed
CHANGED
@@ -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>
|