popov.link/_pages/index.html
Valentin Popov bbf5de4c46
Rename
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-04-24 20:14:39 +04:00

29 lines
942 B
HTML

---
permalink: "index.html"
layout: page
---
{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
<!-- Links to external resources -->
{% include external_links.html %}
{% for year in postsByYear %}
<h2>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}</h2>
{% for post in year.items %}
<div class="post-item">
<small><time datetime="{{ post.date | date_to_xmlschema}}">{{ post.date | date_to_long_string }}</time></small>
<h4>
<a href="{{ post.url | relative_url | uri_escape }}">
{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}
</a>
</h4>
{% if post.description %}
<p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 }}</p>
{% endif %}
</div>
{% endfor %}
{% endfor %}