-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (33 loc) · 1.25 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
---
layout: default
---
<div class="home">
<div class="posts">
{% for post in paginator.posts reversed %}
<div class="post">
{% capture step1 %}{{ paginator.page | minus: 1 | times: site.paginate }}{% endcapture %}
{% if site.show_post_date %}
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
{% elsif post.sequence %}
{% comment %}
//post.sequence calls "sequence: " from the post's frontmatter. This is entirely optional, and allows for a type of post ID to mark the sequence of posts without using the date
{% endcomment %}
<p class="post-meta">#{{ post.sequence }}</p>
{% elsif site.numbered_posts %}
<p class="post-meta">#{{ site.posts | size | minus: step1 | minus: forloop.rindex0 }}</p>
{% else %}
<p class="post-meta">⠙</p>
{% endif %}
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h2 post-title">{{ post.title }}</h3></a>
<p class="post-summary">
{% if post.summary %}
{{ post.summary }}
{% else %}
{{ post.excerpt }}
{% endif %}
</p>
</div>
{% endfor %}
</div>
{% include pagination.html %}
</div>