No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

posts.html 813B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. layout: post-index
  3. permalink: /posts/
  4. title: All Posts
  5. description: "An archive of posts."
  6. ---
  7. {% for post in site.posts %}
  8. {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
  9. {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
  10. {% if forloop.first %}
  11. <article>
  12. <h2 id="{{ this_year }}-ref">{{ this_year }}</h2>
  13. <ul>
  14. {% endif %}
  15. <li class="entry-title"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
  16. {% if forloop.last %}
  17. </ul>
  18. </article>
  19. {% else %}
  20. {% if this_year != next_year %}
  21. </ul>
  22. </article>
  23. <article>
  24. <h2 id="{{ next_year }}-ref">{{next_year}}</h2>
  25. <ul>
  26. {% endif %}
  27. {% endif %}
  28. {% endfor %}