From c204a254c0397d72481e43e261ffc54fdfe92c71 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 3 Sep 2019 02:54:00 +0400 Subject: Updated list of posts Signed-off-by: Valentin Popov --- _pages/index.html | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to '_pages') 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 %}
-

- - - | - {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} - -

+

{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | slugify }}

+ +
{% endfor %} -- cgit v1.2.3