-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (54 loc) · 2.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
title: "The high quality, completely customizable, performant and 100% free blog template for Jekyll"
description: "Chalk uses all the best tools and merges them into one premium blogging theme."
---
<ul class="article-list">
{% for post in paginator.posts %}
<li class="article-list-item {% if site.scrollappear_enabled %}scrollappear{% endif %}">
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
<h5>
{{ post.title }}
{% include svg-icon.html icon="arrow-right" %}
</h5>
</a>
<p>
{% if post.description %}
{{ post.description }}
{% else %}
{{ post.excerpt }}
{% endif %}
</p>
<div class="article-list-footer">
<span class="article-list-date">
{{ post.date | date: "%B %-d, %Y" }}
</span>
<span class="article-list-divider">-</span>
<span class="article-list-minutes">
{% capture words %}
{{ post.content | number_of_words }}
{% endcapture %}
{% unless words contains "-" %}
{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}
{% endunless %}
</span>
<span class="article-list-divider">-</span>
<div class="article-list-tags">
{% for tag in post.tags %}
<a href="{{ 'tag/' | relative_url }}{{ tag }}">{{ tag }}</a>
{% endfor %}
</div>
</div>
</li>
{% endfor %}
{% if paginator.total_pages > 1 %}
<li class="article-pagination {% if site.settings.scrollappear_enabled %}scrollappear{% endif %}">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="article-pagination-left">{% include svg-icon.html icon="arrow-left" %} Older posts</a>
{% endif %}
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="article-pagination-right">Newer posts {% include svg-icon.html icon="arrow-right" %}</a>
{% endif %}
</li>
{% endif %}
</ul>