-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
61 lines (52 loc) · 1.62 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
53
54
55
56
57
58
59
60
61
---
layout: default
---
<div class="home">
<ul class="post-list">
{% for post in paginator.posts %}
{% for author in site.authors %}
{% if author[0] == post.author %}
{% assign github_account = author[1].github %}
{% endif %}
{% endfor %}
<li class="post">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">{{ post.title }}</h2>
</a>
<span class="post-meta">
Authored by
{% if post.author %}
{% if github_account %}
<a href="http://github.com/{{github_account}}" target="_blank">{{ post.author }}</a>
{% else %}
{{ post.author }}
{% endif %}
{% endif %}
{% if post.meta %} • {{ post.meta }}{% endif %}<br/>
on {{ post.date | date: "%b %-d, %Y" }}
</span>
<section class="post-content">
{{ post.excerpt }}
{% if post.content contains site.excerpt_separator %}
<a href="{{ post.url | prepend: site.baseurl }}">Continue article ...</a>
{% endif %}
</section>
{% if post.categories %}
<span class="post-meta categories">Categories: {{ post.categories }}</span>
{% endif %}
</li>
{% endfor %}
</ul>
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">
<< Previous
</a>
{% endif %}
<span class="page_number ">{{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Next >>
</a>
{% endif %}
</div>
</div>