forked from Hexlet/hexletguides.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (25 loc) · 779 Bytes
/
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
---
layout: default
---
<div class="row">
{% 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="col-12 col-lg-6 mb-5">
<a href="{{ post.url | prepend: site.baseurl }}" class="index_card_link">
<div class="card card_guides">
<div class="card-block pt-0">
<h2 class="card-title">{{ post.title }}</h2>
<p class="card-text">{{ post.summary }}</p>
<span>
<i class="fa fa-clock-o" aria-hidden="true"></i>
{{ minutes }} мин.
</span>
</div>
</div>
</a>
</div>
{% endfor %}
</div>