-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (41 loc) · 1.58 KB
/
index.html
File metadata and controls
47 lines (41 loc) · 1.58 KB
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
---
{% assign posts_count = paginator.posts | size %}
<div class="home">
{% if posts_count > 0 %}
<p class="site-prompt">
<span class="sym">$</span> blog --latest
<span class="dim">// page {{ paginator.page }} of {{ paginator.total_pages }}</span>
</p>
<div class="post-list" id="search-container">
{% for post in paginator.posts %}
<div class="post-list-item">
<div class="post-list-index">{{ forloop.index | prepend: '00' | slice: -2, 2 }}</div>
<div class="post-list-inner">
<div class="post-list-meta">
<time class="post-list-date">{{ post.date | date: '%Y-%m-%d' }}</time>
{% for category in post.categories %}
<a href="{{ site.url }}/{{ category }}" class="post-list-cat">/{{ category }}</a>
{% endfor %}
{% for tag in post.tags %}
<a href="{{ site.url }}/tags/{{ tag | slugify }}/" class="post-list-tag">{{ tag }}</a>
{% endfor %}
</div>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-list-link">
<h2 class="post-list-title">
<span class="list-arrow">›</span>{{ post.title }}
</h2>
</a>
<p class="post-list-summary">
{% if post.summary %}{{ post.summary }}{% else %}{{ post.excerpt | strip_html | truncatewords: 28 }}{% endif %}
</p>
</div>
</div>
{% endfor %}
</div>
{% include pagination.html %}
{% else %}
<p class="site-prompt"><span class="sym">$</span> <span class="dim">{{ site.text.index.coming_soon }}</span></p>
{% endif %}
</div>