-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (49 loc) · 1.44 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
layout: default
title: Blog & Articles | Dan
---
<div id="blog">
<h1 class="title">Blog Posts</h1>
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
{% if post.external_url %}
<h2>
<a href="{{ post.external_url }}">{{ post.title }}</a>
{% include icon.html icon="external-link" %}
</h2>
{% else %}
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{% endif %}
<div class="meta-info">
{% include icon.html icon="calendar" %}
<time class="date"> {{ post.date | date_to_string }} </time>
</div>
<p>{{ post.excerpt }}</p>
</div>
{% endfor %}
</div>
<div class="pager">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}"
>{% include icon.html icon="chevron-left" %}</a
>
{% else %}
<a class="disabled" href="{{ paginator.previous_page_path }}"
>{% include icon.html icon="chevron-left" %}</a
>
{% endif %} {% if paginator.total_pages %}
<span class="page_number"
>Page {{ paginator.page }} of {{ paginator.total_pages }}</span
>
{% endif %} {% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}"
>{% include icon.html icon="chevron-right" %}</a
>
{% else %}
<a class="disabled" href="{{ paginator.next_page_path }}"
>{% include icon.html icon="chevron-right" %}</a
>
{% endif %}
</div>
</div>