aboutsummaryrefslogtreecommitdiff
path: root/_pages
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-09-03 01:54:00 +0300
committerValentin Popov <info@valentineus.link>2019-09-03 01:54:00 +0300
commitc204a254c0397d72481e43e261ffc54fdfe92c71 (patch)
tree40b68b6c5fe7a2281b8673b0970181e48c848cd8 /_pages
parentf8d7ad4c4884d09a21965b28ee38c82870112a65 (diff)
downloadpopov.link-c204a254c0397d72481e43e261ffc54fdfe92c71.tar.xz
popov.link-c204a254c0397d72481e43e261ffc54fdfe92c71.zip
Updated list of posts
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_pages')
-rw-r--r--_pages/index.html31
1 files changed, 20 insertions, 11 deletions
diff --git a/_pages/index.html b/_pages/index.html
index 35ee042..2c09cfb 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -1,20 +1,29 @@
---
layout: page
permalink: "index.html"
+title: ""
---
-{% for post in site.posts %}
+{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
+
+{% for year in postsByYear %}
<section>
- <h4>
- <span>
- <time datetime="{{ post.date | date_to_xmlschema }}">
- {{ post.date | date: '%Y-%m-%d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
- </time>
- </span> | <a href="{{ post.url | relative_url | uri_escape }}">
- {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
- </a>
- </h4>
+ <h3>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | slugify }}</h3>
+
+ <ul>
+ {% for post in year.items %}
+ <li>
+ <a href="{{ post.url | relative_url | uri_escape }}">
+ {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
+ </a>
- <p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</p>
+ <small>
+ <time datetime="{{ post.date | date_to_xmlschema }}">
+ <em>{{ post.date | date: '- %b %d' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</em>
+ </time>
+ </small>
+ </li>
+ {% endfor %}
+ </ul>
</section>
{% endfor %}