layout: default
<div class=“home”>
<head> <title>{{ site.title }}</title> </head> <div class="home-title"> <p class="home-heading">{{ site.title }}</p> <p class="home-sub-heading">{{- site.description | escape -}}</p> </div> {%- if site.posts.size > 0 -%} <ul class="post-list"> {% 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 %} <h2 id="{{ this_year }}-ref" class="post-year">{{this_year}}</h2> <ul> {% endif %} <li> {%- assign date_format = site.moving.date_format | default: "%b %-d, %Y" -%} <span class="post-meta"> {{ post.date | date: date_format }} </span> <a class="black-link post-link-layout" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a> </li> {% if forloop.last %} </ul> {% else %} {% if this_year != next_year %} </ul> <h2 id="{{ next_year }}-ref" class="post-year">{{next_year}}</h2> <ul> {% endif %} {% endif %} {% endfor %} </ul> {%- endif -%}
</div>