-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
44 lines (40 loc) · 1.27 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
---
layout: default
home: true
---
{% for post in paginator.posts %}
{% assign minutes = post.content | number_of_words | divided_by: 180 %}
{% if minutes == 0 %}
{% assign read-time = site.var_less_than_a_minute_read %}
{% else %}
{% assign read-time = minutes | append: " " | append: site.var_min_read %}
{% endif %}
<article>
<a href="{{ post.url | prepend: site.baseurl }}">
<h2>{{ post.title }}</h2>
</a>
<span>
{% if site.display-author-front-page %}
{% if post.author.name %}
{{ post.author.name }} •
{% else %}
{% if site.author.name %}
{{ site.author.name }} •
{% endif %}
{% endif %}
{% endif %}
{{ post.date | date: site.date_format }} • {{ read-time }}
</span>
<p>{{ post.content | strip_html | truncatewords:140 }}</p>
<a href="{{ post.url | prepend: site.baseurl }}">{{ site.var_read }} →
<span><a href="{{ post.url }}#disqus_thread"></a></span>
<div>
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags/#{{tag | slugify }}">{{ tag }}</a>
{% endfor %}
</div>
</article>
{% endfor %}
{% if paginator.previous_page or paginator.next_page %}
{% include pagination.html %}
{% endif %}