From d53231853aa812ab0507e0386a03bb768c7dca74 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 16 Dec 2018 18:07:19 +0400 Subject: [PATCH] feat(list): Update the list of posts Signed-off-by: Valentin Popov --- _pages/index.html | 50 ++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/_pages/index.html b/_pages/index.html index adaed06..93152b9 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -1,36 +1,32 @@ --- -permalink: "index.html" -title: "Home" layout: page +permalink: "index.html" +title: "Список всех постов" --- -{% assign amount = 0 %} {% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} {% for year in postsByYear %} - {% capture amount %}{{ amount | plus: 1 }}{% endcapture %} +
+ +

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

-

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

+ +
+{% endfor %}