-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (28 loc) · 947 Bytes
/
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
---
layout: default
title: Learn You Code
---
<div id="home">
<!-- <h1>Blog Posts</h1>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
--></ul>
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<h2 class="article-link"><a href="{{ post.url }}">{{ post.title }}</a></h2>
{% endfor %}
<nav id="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" title="Previous Page">« Previous</a>
{% else %}
<a href="/page{{ paginator.previous_page }}/" title="Previous Page">« Previous</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}/" title="Next Page">Next »</a>
{% endif %}
</nav>
</div>