Adjust style to be a little more "responsive"
[blog.git] / archives / index.html
1 ---
2 layout: default
3 title: Archives
4 ---
5
6 <h1>Blog archive</h1>
7 <table>
8 <tbody>
9 {% for post in site.posts %}
10 {% assign loopindex = forloop.index | modulo: 2 %}
11 {% assign currentdate = post.date | date: "%Y" %}
12 {% if currentdate != date %}
13 <tr class="yearline">
14 <td class="yearcell" colspan="2">
15 <a href="/{{currentdate}}" class="year-link" title="Link to Year {{currentdate}}">{{ currentdate }}</a>
16 </td>
17 </tr>
18 {% assign date = currentdate %}
19 {% endif %}
20 {% if loopindex == 1 %}
21 <tr class="odd">
22 {% else %}
23 <tr class="even">
24 {% endif %}
25 <td class="postdate"><time datetime="{{post.date | date_to_xmlschema}}">{{ post.date | date: "%d. %B" }}</time>
26 </td>
27 <td class="postlink"><a href="{{ post.url }}" title="{{ post.title | markdownify | remove: '<p>' | remove: '</p>'}}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>'}}</a></td>
28 </tr>
29 {% endfor %}
30 </tbody>
31 </table>