-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.html
44 lines (43 loc) · 1.56 KB
/
archive.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
---
layout: base
---
<article class="container">
<h1>Archive</h1>
<p>Ordered by most recent:</p>
<ul>
{% for post in site.posts %}
{% unless post.draft or post.categories contains 'upcoming' %}
<li><a href="#{{ post.id }}" rel="prefetch">{{ post.title }}</a></li>
{% endunless %}
{% endfor %}
</ul>
<hr />
{% for post in site.posts %}
{% unless post.draft or post.categories contains 'upcoming' %}
<section class="index">
<!-- {% if post.author.image %}<img src="/images/{{ post.author.image }}" class="avatar">{% endif %}-->
<div>
<a name="{{ post.id }}"></a><h2 class="title"><a href="{{ post.url }}" rel="prefetch">{{ post.title }}</a></h2>
<p>{{ post.excerpt }}</p>
<div class="meta">
{{ post.location }} —
<time pubdate datetime="{{ post.date | date: "%Y-%d-%B" }}" title="{{ post.date | date: "%B %d, %Y" }}">{{ post.date | date: "%B %d, %Y" }}</time>
</div>
</div>
<hr>
</section>
{% endunless %}
{% endfor %}
<section class="pagination" style="text-align:center">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="btn btn-outline">‹ Newer</a>
{% else %}
<a href="/page{{ paginator.previous_page }}" class="btn btn-outline">‹ Newer</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}" class="btn btn-outline">Older ›</a>
{% endif %}
</section>
</article>