-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
43 lines (40 loc) · 1.2 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
---
layout: default
---
{% assign posts_count = paginator.posts | size %}
<div class="home">
{% if posts_count > 0 %}
<div class="posts" id="search-container">
{% for post in paginator.posts %}
<div class="post py3">
<p class="post-meta">{{ post.date | date: site.date_format }}</p>
<span class="post-meta small">
{% for category in post.categories %}
<a href="{{ site.url }}/{{ category }}" class="post-link">#{{ category }}</a>
{% endfor %}
</span>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
<h3 class="h1 post-title">{{ post.title }}</h3>
</a>
<div class="post-content-summary">
{% if post.cover %}
<a href="{{ post.url | prepend: site.baseurl }}">
<img src="{{ post.cover }}" alt="{{ post.title }}" />
</a>
{% endif %}
<span class="post-summary">
{% if post.summary %}
{{ post.summary }}
{% else %}
{{ post.excerpt }}
{% endif %}
</span>
</div>
</div>
{% endfor %}
</div>
{% include pagination.html %}
{% else %}
<h1 class='center'>{{ site.text.index.coming_soon }}</h1>
{% endif %}
</div>