-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (57 loc) · 2.1 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
---
{% if site.image and paginator.page == 1 %}
<div class="cover-image"><img src="{{ site.image }}" alt="" /></div>
{% endif %}
<div class="post-list">
{% for post in paginator.posts %}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h2 class="post-title" itemprop="headline"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title | xml_escape }}</a></h2>
</header>
<div class="post-excerpt" itemprop="description">
{{ post.excerpt | strip_html }}<a class="read-more" href="{{url}}">…</a>
</div>
<div class="post-footer">
<ul class="x-separated-list x-separated-list-meta x-separated-list-small">
{% assign author = site.authors[post.author] %}
{% if author %}
<li class="post-byline">
{% if author.website %}
<a href="{{ author.website }}">{{ author.name }}</a>
{% else %}
{{ author.name }}
{% endif %}
</li>
{% endif %}
<li class="post-date"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %-d, %Y" }}</time></li>
</ul>
</div>
</article>
{% endfor %}
</div>
{% if paginator.previous_page or paginator.next_page %}
<nav class="pagination clearfix">
{% if paginator.previous_page %}
<a class="pagination-newer" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: 'index.html', '' }}">
<div>
<svg viewBox="0 0 9 14">
<path d="M7.293 14l1.414-1.414L3.12 7l5.587-5.586L7.293 0l-7 7 7 7z"/>
</svg>
</div>
Newer Posts
</a>
{% endif %}
{% if paginator.next_page %}
<a class="pagination-older" href="{{ paginator.next_page_path | prepend: site.baseurl }}">
<div>
<svg viewBox="0 0 9 14">
<path d="M1.707 14L.293 12.586 5.88 7 .292 1.414 1.707 0l7 7-7 7z"/>
</svg>
</div>
Older Posts
</a>
{% endif %}
</nav>
{% endif %}