Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 824 Bytes

sitemap.md

File metadata and controls

39 lines (33 loc) · 824 Bytes
layout title
support
Site map

Site map

Pages

{% include directory-tree.html %}

Posts

<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>