mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-04-25 05:47:35 +00:00

* Sets front matter defaults * Removes default front matter from section templates/pages * Removes default front matter from addon pages * Removes default front matter from integration pages * Removes default front matter from posts * Removes default front matter from docs pages * Removes default front matter from other pages * Fixes blog category pages
18 lines
390 B
HTML
18 lines
390 B
HTML
---
|
|
title: "Blog index"
|
|
layout: page
|
|
---
|
|
|
|
<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 %}
|
|
<article>
|
|
{% include blog/archive_post.html %}
|
|
</article>
|
|
{% endfor %}
|
|
</div>
|