-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (45 loc) · 1.54 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
---
layout: blog
title: Blog
---
<main class="main pt-4" role="main">
<div class="container">
<div class="row">
<div class="col-md-9">
{% for post in paginator.posts %}
<article class="card mb-4">
<header class="card-header">
<div class="card-meta">
<time>Published on {{ post.date | date_to_string }}</time>
<span>
in -
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
</span>
</div>
<a href="{{site.baseurl}}{{ post.url }}">
<h4 class="card-title">{{ post.title }}</h4>
</a>
</header>
<a href="{{site.baseurl}}{{ post.url }}">
<img class="card-img" src="{{site.baseurl}}/img/{{ post.image }}" alt="" />
</a>
<div class="card-body">
<p class="card-text">{{ post.content | strip_html | truncatewords:40 }}</p>
</div>
</article>
{% endfor %}
</div>
{% include sidebar.html %}
</div>
</div>
{% include pagination.html %}
</main>
{% include footer.html %}