-
Notifications
You must be signed in to change notification settings - Fork 9
/
archive.html
38 lines (34 loc) · 955 Bytes
/
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
---
layout: page
title: Archive
permalink: /archive/
redirect_from:
- /search/
- /search/site/
---
<div class="search-bar">
<gcse:search></gcse:search>
</div>
{% assign postsByYear = site.posts | group_by_exp:"post", "post.date | date: '%Y'" %}
{% for yearGroup in postsByYear %}
<div class="year-group">
<h2>{{ yearGroup.name }}</h2>
<ul>
{% for post in yearGroup.items %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endfor %}
<script>
(function() {
var cx = '010548306397655477104:g7_7cpvfdlu';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>