Skip to content

Latest commit

 

History

History
47 lines (44 loc) · 1.56 KB

File metadata and controls

47 lines (44 loc) · 1.56 KB
layout default
title Articles
permalink /articles/
<style> .archive-intro { color: var(--meta-color); margin: 0 0 1.9rem; } .archive-year { margin: 0 0 1.7rem; } .archive-year h2 { font-size: 1.05rem; color: var(--meta-color); font-weight: 600; letter-spacing: .04em; margin: 0 0 .55rem; padding-bottom: .35rem; border-bottom: 1px solid var(--border-color); } .archive-list { list-style: none; margin: 0; padding: 0; } .archive-list li { display: flex; gap: 1rem; align-items: baseline; padding: .32rem 0; } .archive-list .d { color: var(--meta-color); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 3.6rem; font-size: .85rem; } .archive-list a { text-decoration: none; } .archive-list a:hover { text-decoration: underline; } .more-link { margin-top: 1.6rem; } </style>

Articles

Everything I’ve written, newest first — {{ site.posts.size }} posts.

{% assign byYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
{% for year in byYear %}
<section class="archive-year">
  <h2>{{ year.name }}</h2>
  <ul class="archive-list">
    {% for post in year.items %}
    <li>
      <span class="d">{{ post.date | date: "%b %-d" }}</span>
      <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
    </li>
    {% endfor %}
  </ul>
</section>
{% endfor %}