-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (39 loc) · 1.35 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
---
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>
<span class="meta">
{% if paginator.per_page == 1 %}
{{ site.var_latest_post }}
{% endif %}
{% 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>
<a href="{{ post.url | prepend: site.baseurl }}"><h1>{{ post.title }}</h1></a>
<p>
{% if post.summary %}
{{ post.summary }} <a class="read-more" href="{{ post.url | prepend: site.baseurl }}">{{ site.var_read }} →</a>
{% else %}
{{ post.excerpt | remove: '<p>' | remove: '</p>' }} <a class="read-more" href="{{ post.url | prepend: site.baseurl }}">{{ site.var_read }} →</a>
{% endif %}
</p>
</article>
{% endfor %}
{% if paginator.previous_page or paginator.next_page %}
{% include pagination.html %}
{% endif %}