-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
25 lines (23 loc) · 812 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
---
layout: home-page
pagination:
enabled: true
per_page: 6
---
<ol class="post-card-box clearfix">
{% for post in paginator.posts %}
<li>
<div class="post-card">
<a href="{{post.url | prepend: site.baseurl}}" class="post-card-image" style="background-image: url( {{ "/assets/img/" | prepend: site.baseurl | append : post.img}} )">
</a>
<div class="post-card-body">
<p class="post-meta" style="color: #ffc">{{ post.date | date: "%b %d, %Y" }}</p>
{% for tag in post.tags %}
<a href="{{site.baseurl}}/tags#{{tag}}" class="tag">| {{ tag }}</a>
{% endfor %}
<a href="{{post.url | prepend: site.baseurl}}" class="post-card-link"><h3 class="post-card-title">{{post.title}}</h3></a>
</div>
</div>
</li>
{% endfor %}
</ol>