-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (35 loc) · 1.29 KB
/
index.html
File metadata and controls
40 lines (35 loc) · 1.29 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
---
layout: default
title: Work For Free
---
<div class="gh-feed">
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<article class="gh-post">
<header class="gh-post-header">
<h2 class="gh-post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<div class="gh-post-meta">
<span class="gh-post-date">{{ post.date | date_to_string }}</span>
</div>
</header>
<section class="gh-post-excerpt">
{{ post.excerpt }}
<a class="gh-read-more" href="{{ post.url }}">Continue reading →</a>
</section>
</article>
{% endfor %}
<!-- Pagination links -->
<nav class="gh-pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="gh-pagination-item" href="/" title="Previous Page">← Newer Posts</a>
{% else %}
<a class="gh-pagination-item" href="/page{{ paginator.previous_page }}/" title="Previous Page">← Newer Posts</a>
{% endif %}
{% endif %}
<span class="gh-page-number">Page {{paginator.page}} of {{paginator.total_pages}}</span>
{% if paginator.next_page %}
<a class="gh-pagination-item" href="/page{{ paginator.next_page }}/" title="Next Page">Older Posts →</a>
{% endif %}
</nav>
</div>