-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (40 loc) · 1.12 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
---
layout: default
---
<div class="row">
<div class="col">
{% for post in paginator.posts %}
{% assign minutes = post.content | strip_html | number_of_words | divided_by: 180 %}
{% if minutes == 0 %}
{% assign minutes = 1 %}
{% endif %}
<div class="mb-4">
<a href="{{ post.url | prepend: site.baseurl }}" class="nocolor">
<h2>{{ post.title }}</h2>
</a>
<div>
{% if post.content contains "<!-- more -->" %}
{{ post.content | split:"<!-- more -->" | first % }}
<div style="text-align:right;">
<a href="{{ post.url }}" style="color:#000;"> Read More </a>
</div>
{% else %}
{{ post.content }}
{% endif %}
</div>
<div class="meta text-muted">
{{ post.date | date_to_long_string }},
<span>
<i class="fa fa-clock-o ml-1" aria-hidden="true"></i> {{ minutes }} min
</span>
/
<a href="{{ post.url | prepend: site.baseurl }}">
permalink
</a>
</div>
</div>
<hr>
{% endfor %}
</div>
</div>
</div>