/
archive.html
54 lines (43 loc) · 1.53 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
51
52
53
54
---
layout: default
title: Archive
permalink: /archive/
---
<paper-drawer-panel id="drawerPanel">
<paper-header-panel drawer>
{% include drawer.html %}
</paper-header-panel>
<paper-scroll-header-panel condenses keepcondensedheader main>
<paper-toolbar class="super-tall" id="mainheader">
<paper-icon-button
id="navicon" icon="menu"></paper-icon-button>
<h1 class="bottom indent title">{{ page.title }}</h1>
</paper-toolbar>
<div class="main-content">
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<paper-shadow class="post-card" z="1">
<card>
<h2 class="card-content" id="{{ this_year }}-ref">{{this_year}}</h2><br>
<!-- <ul> -->
{% endif %}
<li><h4 class="card-content"><a href="{{ post.url }}">{{ post.title }}</a>
<br><small>{{ post.date | date: "%Y/%m/%d" }}</small></h4></li>
{% if forloop.last %}
</card>
</paper-shadow>
{% else %}
{% if this_year != next_year %}
</card>
</paper-shadow>
<paper-shadow class="post-card" z="1">
<card>
<h2 class="card-content" id="{{ next_year }}-ref">{{next_year}}</h2>
{% endif %}
{% endif %}
{% endfor %}
</paper-scroll-header-panel>
</paper-drawer-panel>
<script src="{{ "/js/common.js" | prepend: site.baseurl }}"></script>