-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.html
50 lines (48 loc) · 1.62 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
45
46
47
48
49
50
---
layout: page
title: Archives
description: "All of the archived posts from the weblog."
---
<h3>Tags used in posts</h3>
<section>
{% tag_list %}
</section>
<h3>Archived posts (by year)</h3>
<section>
<ul id="archive-tabs" class="nav nav-tabs">
{% for post in site.posts %}
{% unless post.next %}
<li class="active"><a href="#{{ post.date | date: '%Y'}}" data-toggle="tab">{{ post.date | date: '%Y'}}</a>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<li><a href="#{{ post.date | date: '%Y'}}" data-toggle="tab">{{ post.date | date: '%Y'}}</a>
{% endif %}
{% endunless %}
{% endfor %}
</ul>
<div class="tab-content">
{% for post in site.posts %}
{% unless post.next %}
<div class="tab-pane active" id="{{ post.date | date: '%Y'}}">
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</div>
<div class="tab-pane" id="{{ post.date | date: '%Y'}}">
{% endif %}
<p>
<a href="{{ post.url }}" title="{{ post.title | escape }}" rel="bookmark">{{ post.title }}</a> — {{ post.date | date: "%Y-%m-%d" }}
</p>
{% if post.description.size > 0 %}
<blockquote>
{{ post.description }}
</blockquote>
{% endif %}
{% endunless %}
{% endfor %}
</div>
</div>
</section>