-
Notifications
You must be signed in to change notification settings - Fork 122
/
index.html
73 lines (64 loc) · 2.82 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
62
63
64
65
66
67
68
69
70
71
72
73
---
layout: default
---
<h2 class="list-title">Posts</h2>
<ul class="posts">
{% for post in paginator.posts %}
<li class="post">
<h2 class="post-title"><a href="{{ post.url }}">{{post.title}}</a></h2>
<p class="post-excerpt">{{ post.excerpt }}</p>
<div class="post-meta post-meta-small minor-text">
<div class="post-meta-rows">
<div class="post-meta-basic-info">
{% assign authors = post.author | split: ", " %}
<span class="author">by
{% for authorName in authors -%}
{%- assign author = site.authors[authorName] -%}
{%- if authorName != authors[0] %}, {% endif -%}
<a href="{{ author.url }}" title="{{ author.email }}">{{ author.name }}</a>
{%- endfor -%}
</span>
<span class="text-divider">|</span>
<span class="date" title="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</span>
</div>
<div class="post-meta-tags">
{% for tag in post.tags %}
{% if tag != post.tags[0] %}
<span class="text-divider-bullet">●</span>
{% endif %}
<a class="post-meta-tag" data-count="{{ tag | size }}" href="/tags.html#{{ tag | slugify }}-ref">{{ tag }}</a>
{% endfor %}
</div>
</div>
</div>
<!-- <p><a href="{{ post.url }}" class="decorated">Read more »</a></p> -->
</li>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">
<span class="link-arrow-left"></span>Previous</a>
{% else %}
<span><span class="arrow-left"></span>Previous</span>
{% endif %}
<span class="text-divider">|</span>
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em class="pagination-item">{{ page }}</em>
{% elsif page == 1 %}
<a class="pagination-item" href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
{% else %}
<a class="pagination-item" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
<span class="text-divider">|</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">
Next<span class="link-arrow-right"></span></a>
{% else %}
<span>Next<span class="arrow-right"></span></span>
{% endif %}
</div>
{% endif %}
</ul>