-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (31 loc) · 1.04 KB
/
Copy pathindex.html
File metadata and controls
32 lines (31 loc) · 1.04 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
---
layout: default
title: Home
---
<ul class="post-list">
{% for post in paginator.posts %}
<li class="post-list-item">
{% if post.featured_image %}
<a href="{{ post.url | relative_url }}" class="post-list-image">
<img src="{{ post.featured_image | relative_url }}" alt="{{ post.title }}" loading="lazy">
</a>
{% endif %}
<h2 class="post-list-title">
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h2>
<div class="post-list-date">{{ post.date | date: "%B %-d, %Y" }}</div>
<div class="post-list-excerpt">{{ post.excerpt | strip_html | truncatewords: 50 }}</div>
</li>
{% endfor %}
</ul>
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}">« Newer</a>
{% endif %}
<span>Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}">Older »</a>
{% endif %}
</nav>
{% endif %}