popov.link/_pages/index.html
Valentin Popov d86429538f
Updated list of posts
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-05-15 03:11:27 +04:00

34 lines
1.0 KiB
HTML

---
permalink: "index.html"
layout: page
---
{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
{% for year in postsByYear %}
<h2>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}</h2>
<table class="table table-striped">
{% for post in year.items %}
<tr>
<!-- Date -->
<td>
<time datetime="{{ post.date | date_to_xmlschema}}">{{ post.date | date_to_long_string }}</time>
</td>
<!-- Title -->
<td>
<a href="{{ post.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a>
</td>
<!-- Description -->
<td>
{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 | xml_escape }}
</td>
</tr>
{% endfor %}
</table>
{% endfor %}