layout | title |
---|---|
support |
Site map |
<ul>
{%- for post in site.posts -%}
{%- assign date = post.date | split: " " | first -%}
{%- assign year = date | split: "-" | first -%}
{%- unless year == prev_year -%}
{%- unless prev_year == nil %}
</ul>
</li>
{%- endunless %}
<li>
<strong>{{ year }}</strong>
<ul>
{%- endunless %}
<li>{{ date }} <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
{%- assign prev_year = year -%}
{%- endfor %}
</ul>
</li>
</ul>