mje-nz-mistakes-jekyll 4.1.1.dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +690 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +7 -0
  5. data/_includes/analytics-providers/custom.html +3 -0
  6. data/_includes/analytics-providers/google-universal.html +9 -0
  7. data/_includes/analytics-providers/google.html +11 -0
  8. data/_includes/analytics.html +12 -0
  9. data/_includes/archive-single.html +38 -0
  10. data/_includes/author-profile-custom-links.html +7 -0
  11. data/_includes/author-profile.html +241 -0
  12. data/_includes/base_path +5 -0
  13. data/_includes/breadcrumbs.html +39 -0
  14. data/_includes/browser-upgrade.html +3 -0
  15. data/_includes/category-list.html +26 -0
  16. data/_includes/comment.html +22 -0
  17. data/_includes/comments-providers/custom.html +3 -0
  18. data/_includes/comments-providers/discourse.html +13 -0
  19. data/_includes/comments-providers/disqus.html +22 -0
  20. data/_includes/comments-providers/facebook.html +8 -0
  21. data/_includes/comments-providers/google-plus.html +2 -0
  22. data/_includes/comments-providers/scripts.html +18 -0
  23. data/_includes/comments-providers/staticman.html +42 -0
  24. data/_includes/comments.html +80 -0
  25. data/_includes/feature_row +50 -0
  26. data/_includes/figure +12 -0
  27. data/_includes/footer/custom.html +3 -0
  28. data/_includes/footer.html +22 -0
  29. data/_includes/gallery +47 -0
  30. data/_includes/group-by-array +47 -0
  31. data/_includes/head/custom.html +5 -0
  32. data/_includes/head.html +19 -0
  33. data/_includes/masthead.html +21 -0
  34. data/_includes/nav_list +47 -0
  35. data/_includes/page__hero.html +53 -0
  36. data/_includes/page__taxonomy.html +7 -0
  37. data/_includes/paginator.html +68 -0
  38. data/_includes/post_pagination.html +14 -0
  39. data/_includes/read-time.html +15 -0
  40. data/_includes/scripts.html +4 -0
  41. data/_includes/seo.html +145 -0
  42. data/_includes/sidebar.html +23 -0
  43. data/_includes/social-share.html +13 -0
  44. data/_includes/tag-list.html +26 -0
  45. data/_includes/toc +7 -0
  46. data/_layouts/archive-taxonomy.html +15 -0
  47. data/_layouts/archive.html +24 -0
  48. data/_layouts/compress.html +10 -0
  49. data/_layouts/default.html +28 -0
  50. data/_layouts/home.html +11 -0
  51. data/_layouts/single.html +74 -0
  52. data/_layouts/splash.html +20 -0
  53. data/assets/css/main.css +4 -0
  54. data/assets/fonts/FontAwesome.otf +0 -0
  55. data/assets/fonts/fontawesome-webfont.eot +0 -0
  56. data/assets/fonts/fontawesome-webfont.svg +2671 -0
  57. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  58. data/assets/fonts/fontawesome-webfont.woff +0 -0
  59. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  60. data/assets/js/main.min.js +4 -0
  61. metadata +216 -0
@@ -0,0 +1,80 @@
1
+ <div class="page__comments">
2
+ {% capture comments_label %}{{ site.data.ui-text[site.locale].comments_label | default: "Comments" }}{% endcapture %}
3
+ {% case site.comments.provider %}
4
+ {% when "disqus" %}
5
+ <h4 class="page__comments-title">{{ comments_label }}</h4>
6
+ <section id="disqus_thread"></section>
7
+ {% when "facebook" %}
8
+ <h4 class="page__comments-title">{{ comments_label }}</h4>
9
+ <section class="fb-comments" data-href="{{ page.url | absolute_url }}" data-mobile="true" data-num-posts="{{ site.comments.facebook.num_posts | default: 5 }}" data-width="100%" data-colorscheme="{{ site.comments.facebook.colorscheme | default: 'light' }}"></section>
10
+ {% when "google-plus" %}
11
+ <h4 class="page__comments-title">{{ comments_label }}</h4>
12
+ <section class="g-comments" data-href="{{ page.url | absolute_url }}" data-first_party_property="BLOGGER" data-view_type="FILTERED_POSTMOD">Loading Google+ Comments ...</section>
13
+ {% when "staticman" %}
14
+ <section id="static-comments">
15
+ {% if site.repository and site.staticman.branch %}
16
+ <!-- Start static comments -->
17
+ <div class="js-comments">
18
+ {% if site.data.comments[page.slug] %}
19
+ <h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}</h4>
20
+ {% assign comments = site.data.comments[page.slug] | sort %}
21
+
22
+ {% for comment in comments %}
23
+ {% assign email = comment[1].email %}
24
+ {% assign name = comment[1].name %}
25
+ {% assign url = comment[1].url %}
26
+ {% assign date = comment[1].date %}
27
+ {% assign message = comment[1].message %}
28
+ {% include comment.html index=forloop.index email=email name=name url=url date=date message=message %}
29
+ {% endfor %}
30
+ {% endif %}
31
+ </div>
32
+ <!-- End static comments -->
33
+
34
+ <!-- Start new comment form -->
35
+ <h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
36
+ <p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
37
+ <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}">
38
+ <div class="form__spinner">
39
+ <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
40
+ <span class="sr-only">{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}</span>
41
+ </div>
42
+
43
+ <fieldset>
44
+ <label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label>
45
+ <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
46
+ <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
47
+ </fieldset>
48
+ <fieldset>
49
+ <label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
50
+ <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
51
+ </fieldset>
52
+ <fieldset>
53
+ <label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
54
+ <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
55
+ </fieldset>
56
+ <fieldset>
57
+ <label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
58
+ <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
59
+ </fieldset>
60
+ <fieldset class="hidden" style="display: none;">
61
+ <input type="hidden" name="options[slug]" value="{{ page.slug }}">
62
+ <label for="comment-form-location">Not used. Leave blank if you are a human.</label>
63
+ <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
64
+ </fieldset>
65
+ <!-- Start comment form alert messaging -->
66
+ <p class="hidden js-notice">
67
+ <strong class="js-notice-text"></strong>
68
+ </p>
69
+ <!-- End comment form alert messaging -->
70
+ <fieldset>
71
+ <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
72
+ </fieldset>
73
+ </form>
74
+ <!-- End new comment form -->
75
+ {% endif %}
76
+ </section>
77
+ {% when "custom" %}
78
+ <section id="custom-comments"></section>
79
+ {% endcase %}
80
+ </div>
@@ -0,0 +1,50 @@
1
+ {% if include.id %}
2
+ {% assign feature_row = page.[include.id] %}
3
+ {% else %}
4
+ {% assign feature_row = page.feature_row %}
5
+ {% endif %}
6
+
7
+ <div class="feature__wrapper">
8
+
9
+ {% for f in feature_row %}
10
+
11
+ {% if f.url contains "://" %}
12
+ {% capture f_url %}{{ f.url }}{% endcapture %}
13
+ {% else %}
14
+ {% capture f_url %}{{ f.url | absolute_url }}{% endcapture %}
15
+ {% endif %}
16
+
17
+ <div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}">
18
+ <div class="archive__item">
19
+ {% if f.image_path %}
20
+ <div class="archive__item-teaser">
21
+ <img src=
22
+ {% if f.image_path contains "://" %}
23
+ "{{ f.image_path }}"
24
+ {% else %}
25
+ "{{ f.image_path | absolute_url }}"
26
+ {% endif %}
27
+ alt="{% if f.alt %}{{ f.alt }}{% endif %}">
28
+ </div>
29
+ {% endif %}
30
+
31
+ <div class="archive__item-body">
32
+ {% if f.title %}
33
+ <h2 class="archive__item-title">{{ f.title }}</h2>
34
+ {% endif %}
35
+
36
+ {% if f.excerpt %}
37
+ <div class="archive__item-excerpt">
38
+ {{ f.excerpt | markdownify }}
39
+ </div>
40
+ {% endif %}
41
+
42
+ {% if f.url %}
43
+ <p><a href="{{ f_url }}" class="btn {{ f.btn_class }}">{{ f.btn_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
44
+ {% endif %}
45
+ </div>
46
+ </div>
47
+ </div>
48
+ {% endfor %}
49
+
50
+ </div>
data/_includes/figure ADDED
@@ -0,0 +1,12 @@
1
+ <figure class="{{ include.class }}">
2
+ <img src=
3
+ {% if include.image_path contains "://" %}
4
+ "{{ include.image_path }}"
5
+ {% else %}
6
+ "{{ include.image_path | absolute_url }}"
7
+ {% endif %}
8
+ alt="{% if include.alt %}{{ include.alt }}{% endif %}">
9
+ {% if include.caption %}
10
+ <figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
11
+ {% endif %}
12
+ </figure>
@@ -0,0 +1,3 @@
1
+ <!-- start custom footer snippets -->
2
+
3
+ <!-- end custom footer snippets -->
@@ -0,0 +1,22 @@
1
+ <div class="page__footer-follow">
2
+ <ul class="social-icons">
3
+ {% if site.data.ui-text[site.locale].follow_label %}
4
+ <li><strong>{{ site.data.ui-text[site.locale].follow_label }}</strong></li>
5
+ {% endif %}
6
+ {% if site.twitter.username %}
7
+ <li><a href="https://twitter.com/{{ site.twitter.username }}"><i class="fa fa-fw fa-twitter-square" aria-hidden="true"></i> Twitter</a></li>
8
+ {% endif %}
9
+ {% if site.facebook.username %}
10
+ <li><a href="https://facebook.com/{{ site.facebook.username }}"><i class="fa fa-fw fa-facebook-square" aria-hidden="true"></i> Facebook</a></li>
11
+ {% endif %}
12
+ {% if site.author.github %}
13
+ <li><a href="http://github.com/{{ site.author.github }}"><i class="fa fa-fw fa-github" aria-hidden="true"></i> GitHub</a></li>
14
+ {% endif %}
15
+ {% if site.author.bitbucket %}
16
+ <li><a href="http://bitbucket.org/{{ site.author.bitbucket }}"><i class="fa fa-fw fa-bitbucket" aria-hidden="true"></i> Bitbucket</a></li>
17
+ {% endif %}
18
+ <li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | absolute_url }}{% endif %}"><i class="fa fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
19
+ </ul>
20
+ </div>
21
+
22
+ <div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}. {{ site.data.ui-text[site.locale].powered_by | default: "Powered by" }} <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> &amp; <a href="https://mademistakes.com/work/minimal-mistakes-jekyll-theme/" rel="nofollow">Minimal Mistakes</a>.</div>
data/_includes/gallery ADDED
@@ -0,0 +1,47 @@
1
+ {% if include.id %}
2
+ {% assign gallery = page.[include.id] %}
3
+ {% else %}
4
+ {% assign gallery = page.gallery %}
5
+ {% endif %}
6
+
7
+ {% if gallery.size == 2 %}
8
+ {% assign gallery_layout = 'half' %}
9
+ {% elsif gallery.size >= 3 %}
10
+ {% assign gallery_layout = 'third' %}
11
+ {% else %}
12
+ {% assign gallery_layout = '' %}
13
+ {% endif %}
14
+
15
+ <figure class="{{ gallery_layout }} {{ include.class }}">
16
+ {% for img in gallery %}
17
+ {% if img.url %}
18
+ <a href=
19
+ {% if img.url contains "://" %}
20
+ "{{ img.url }}"
21
+ {% else %}
22
+ "{{ img.url | absolute_url }}"
23
+ {% endif %}
24
+ {% if img.title %}title="{{ img.title }}"{% endif %}
25
+ >
26
+ <img src=
27
+ {% if img.image_path contains "://" %}
28
+ "{{ img.image_path }}"
29
+ {% else %}
30
+ "{{ img.image_path | absolute_url }}"
31
+ {% endif %}
32
+ alt="{% if img.alt %}{{ img.alt }}{% endif %}">
33
+ </a>
34
+ {% else %}
35
+ <img src=
36
+ {% if img.image_path contains "://" %}
37
+ "{{ img.image_path }}"
38
+ {% else %}
39
+ "{{ img.image_path | absolute_url }}"
40
+ {% endif %}
41
+ alt="{% if img.alt %}{{ img.alt }}{% endif %}">
42
+ {% endif %}
43
+ {% endfor %}
44
+ {% if include.caption %}
45
+ <figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
46
+ {% endif %}
47
+ </figure>
@@ -0,0 +1,47 @@
1
+ <!--
2
+ # Jekyll Group-By-Array 0.1.0
3
+ # https://github.com/mushishi78/jekyll-group-by-array
4
+ # © 2015 Max White <mushishi78@gmail.com>
5
+ # MIT License
6
+ -->
7
+
8
+ <!-- Initialize -->
9
+ {% assign __empty_array = '' | split: ',' %}
10
+ {% assign group_names = __empty_array %}
11
+ {% assign group_items = __empty_array %}
12
+
13
+ <!-- Map -->
14
+ {% assign __names = include.collection | map: include.field %}
15
+
16
+ <!-- Flatten -->
17
+ {% assign __names = __names | join: ',' | join: ',' | split: ',' %}
18
+
19
+ <!-- Uniq -->
20
+ {% assign __names = __names | sort %}
21
+ {% for name in __names | sort %}
22
+
23
+ <!-- If not equal to previous then it must be unique as sorted -->
24
+ {% unless name == previous %}
25
+
26
+ <!-- Push to group_names -->
27
+ {% assign group_names = group_names | push: name %}
28
+ {% endunless %}
29
+
30
+ {% assign previous = name %}
31
+ {% endfor %}
32
+
33
+
34
+ <!-- group_items -->
35
+ {% for name in group_names %}
36
+
37
+ <!-- Collect if contains -->
38
+ {% assign __item = __empty_array %}
39
+ {% for __element in include.collection %}
40
+ {% if __element[include.field] contains name %}
41
+ {% assign __item = __item | push: __element %}
42
+ {% endif %}
43
+ {% endfor %}
44
+
45
+ <!-- Push to group_items -->
46
+ {% assign group_items = group_items | push: __item %}
47
+ {% endfor %}
@@ -0,0 +1,5 @@
1
+ <!-- start custom head snippets -->
2
+
3
+ <!-- insert favicons. use http://realfavicongenerator.net/ -->
4
+
5
+ <!-- end custom head snippets -->
@@ -0,0 +1,19 @@
1
+ <meta charset="utf-8">
2
+
3
+ {% include seo.html %}
4
+
5
+ <link href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | absolute_url }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
6
+
7
+ <!-- http://t.co/dKP3o1e -->
8
+ <meta name="HandheldFriendly" content="True">
9
+ <meta name="MobileOptimized" content="320">
10
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
+
12
+ <script>
13
+ document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
14
+ </script>
15
+
16
+ <!-- For all browsers -->
17
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | absolute_url }}">
18
+
19
+ <meta http-equiv="cleartype" content="on">
@@ -0,0 +1,21 @@
1
+ <div class="masthead">
2
+ <div class="masthead__inner-wrap">
3
+ <div class="masthead__menu">
4
+ <nav id="site-nav" class="greedy-nav">
5
+ <button><div class="navicon"></div></button>
6
+ <ul class="visible-links">
7
+ <li class="masthead__menu-item masthead__menu-item--lg"><a href="{{ '/' | absolute_url }}">{{ site.title }}</a></li>
8
+ {% for link in site.data.navigation.main %}
9
+ {% if link.url contains 'http' %}
10
+ {% assign domain = '' %}
11
+ {% else %}
12
+ {% assign domain = site.url | append: site.baseurl %}
13
+ {% endif %}
14
+ <li class="masthead__menu-item"><a href="{{ domain }}{{ link.url }}">{{ link.title }}</a></li>
15
+ {% endfor %}
16
+ </ul>
17
+ <ul class="hidden-links hidden"></ul>
18
+ </nav>
19
+ </div>
20
+ </div>
21
+ </div>
@@ -0,0 +1,47 @@
1
+ {% assign navigation = site.data.navigation[include.nav] %}
2
+
3
+ <nav class="nav__list">
4
+ {% if page.sidebar.title %}<h3 class="nav__title" style="padding-left: 0;">{{ page.sidebar.title }}</h3>{% endif %}
5
+ <input id="ac-toc" name="accordion-toc" type="checkbox" />
6
+ <label for="ac-toc">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle Menu" }}</label>
7
+ <ul class="nav__items">
8
+ {% for nav in navigation %}
9
+ <li>
10
+ {% if nav.url %}
11
+ {% comment %} internal/external URL check {% endcomment %}
12
+ {% if nav.url contains "://" %}
13
+ {% assign domain = "" %}
14
+ {% else %}
15
+ {% assign domain = site.url | append: site.baseurl %}
16
+ {% endif %}
17
+
18
+ <a href="{{ domain }}{{ nav.url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
19
+ {% else %}
20
+ <span class="nav__sub-title">{{ nav.title }}</span>
21
+ {% endif %}
22
+
23
+ {% if nav.children != null %}
24
+ <ul>
25
+ {% for child in nav.children %}
26
+ {% comment %} internal/external URL check {% endcomment %}
27
+ {% if child.url contains "://" %}
28
+ {% assign domain = "" %}
29
+ {% else %}
30
+ {% assign domain = site.url | append: site.baseurl %}
31
+ {% endif %}
32
+
33
+ {% comment %} set "active" class on current page {% endcomment %}
34
+ {% if child.url == page.url %}
35
+ {% assign active = "active" %}
36
+ {% else %}
37
+ {% assign active = "" %}
38
+ {% endif %}
39
+
40
+ <li><a href="{{ domain }}{{ child.url }}" class="{{ active }}">{{ child.title }}</a></li>
41
+ {% endfor %}
42
+ </ul>
43
+ {% endif %}
44
+ </li>
45
+ {% endfor %}
46
+ </ul>
47
+ </nav>
@@ -0,0 +1,53 @@
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
+ <div class="page__hero{% if page.header.overlay_color or page.header.overlay_image %}--overlay{% endif %}"
26
+ 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 %}"
27
+ >
28
+ {% if page.header.overlay_color or page.header.overlay_image %}
29
+ <div class="wrapper">
30
+ <h1 class="page__title" itemprop="headline">
31
+ {% if paginator %}
32
+ {{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
33
+ {% else %}
34
+ {{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
35
+ {% endif %}
36
+ </h1>
37
+ {% if page.excerpt %}
38
+ <p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
39
+ {% endif %}
40
+ {% if site.read_time and page.read_time %}
41
+ <p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
42
+ {% endif %}
43
+ {% if page.header.cta_url %}
44
+ <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>
45
+ {% endif %}
46
+ </div>
47
+ {% else %}
48
+ <img src="{{ img_path }}" alt="{{ page.title }}" class="page__hero-image">
49
+ {% endif %}
50
+ {% if page.header.caption %}
51
+ <span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
52
+ {% endif %}
53
+ </div>
@@ -0,0 +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 %}
7
+ {% endif %}
@@ -0,0 +1,68 @@
1
+ {% if paginator.total_pages > 1 %}
2
+ <nav class="pagination">
3
+ <ul>
4
+ {% comment %} Link for previous page {% endcomment %}
5
+ {% if paginator.previous_page %}
6
+ {% if paginator.previous_page == 1 %}
7
+ <li><a href="{{ '/' | absolute_url }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
8
+ {% else %}
9
+ <li><a href="{{ '/page' | absolute_url }}{{ paginator.previous_page | append: '/' }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
10
+ {% endif %}
11
+ {% else %}
12
+ <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</span></a></li>
13
+ {% endif %}
14
+
15
+ {% comment %} First page {% endcomment %}
16
+ {% if paginator.page == 1 %}
17
+ <li><a href="#" class="disabled current">1</a></li>
18
+ {% else %}
19
+ <li><a href="{{ '/' | absolute_url }}">1</a></li>
20
+ {% endif %}
21
+
22
+ {% assign page_start = 2 %}
23
+ {% if paginator.page > 4 %}
24
+ {% assign page_start = paginator.page | minus: 2 %}
25
+ {% comment %} Ellipsis for truncated links {% endcomment %}
26
+ <li><a href="#" class="disabled">&hellip;</a></li>
27
+ {% endif %}
28
+
29
+ {% assign page_end = paginator.total_pages | minus: 1 %}
30
+ {% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
31
+ {% if pages_to_end > 4 %}
32
+ {% assign page_end = paginator.page | plus: 2 %}
33
+ {% endif %}
34
+
35
+ {% for index in (page_start..page_end) %}
36
+ {% if index == paginator.page %}
37
+ <li><a href="{{ '/page' | absolute_url }}{{ index | append: '/' }}" class="disabled current">{{ index }}</a></li>
38
+ {% else %}
39
+ {% comment %} Distance from current page and this link {% endcomment %}
40
+ {% assign dist = paginator.page | minus: index %}
41
+ {% if dist < 0 %}
42
+ {% comment %} Distance must be a positive value {% endcomment %}
43
+ {% assign dist = 0 | minus: dist %}
44
+ {% endif %}
45
+ <li><a href="{{ '/page' | absolute_url }}{{ index | append: '/' }}">{{ index }}</a></li>
46
+ {% endif %}
47
+ {% endfor %}
48
+
49
+ {% comment %} Ellipsis for truncated links {% endcomment %}
50
+ {% if pages_to_end > 3 %}
51
+ <li><a href="#" class="disabled">&hellip;</a></li>
52
+ {% endif %}
53
+
54
+ {% if paginator.page == paginator.total_pages %}
55
+ <li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
56
+ {% else %}
57
+ <li><a href="{{ '/page' | absolute_url }}{{ paginator.total_pages }}/">{{ paginator.total_pages }}</a></li>
58
+ {% endif %}
59
+
60
+ {% comment %} Link next page {% endcomment %}
61
+ {% if paginator.next_page %}
62
+ <li><a href="{{ '/page' | absolute_url }}{{ paginator.next_page }}/">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a></li>
63
+ {% else %}
64
+ <li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</span></a></li>
65
+ {% endif %}
66
+ </ul>
67
+ </nav>
68
+ {% endif %}
@@ -0,0 +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>
14
+ {% endif %}
@@ -0,0 +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" }}
15
+ {% endif %}
@@ -0,0 +1,4 @@
1
+ <script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
2
+
3
+ {% include analytics.html %}
4
+ {% include /comments-providers/scripts.html %}