home-assistant.io/source/_layouts/category_index.html

17 lines
385 B
HTML

---
title: "Blog index"
layout: page
feedback: false
---
<div id="archive-list">
{% for post in site.categories[page.category] %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
{% include blog/archive_post.html %}
{% endfor %}
</div>