---
layout: card-page
title: "Blog archive"
---

<table>
{% for post in site.posts %}
{% capture currentYear %}{{post.date | date:'%Y'}}{% endcapture %}
{% if currentYear != prevYear %}<thead><tr><th colspan=2><h2>{{currentYear}}</h2><tbody>{% capture prevYear %}{{currentYear}}{% endcapture %}{% endif %}
<tr><th>{{post.date | date:'%F'}}<td><a href="{{post.url}}">{{post.title}}</a></tr>
{% endfor %}
</table>
---
layout: card-page
title: "Blog archive"
---

<table>{%
  for post in site.posts %}{% 
    capture currentYear %}{{post.date | date:'%Y'}}{% endcapture %}{%
    if currentYear != prevYear 
      %}<thead><tr><th colspan=2><h2>{{currentYear}}</h2><tbody>{% 
      capture prevYear %}{{currentYear}}{% endcapture %}{%
    endif 
    %}<tr><th>{{post.date | date:'%F'}}<td><a href="{{post.url}}">{{post.title}}</a></tr>{% 
  endfor %}</table>
Remove unnecessary newlines in output
Remove unnecessary newlines in output
