From d53231853aa812ab0507e0386a03bb768c7dca74 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 16 Dec 2018 18:07:19 +0400 Subject: feat(list): Update the list of posts Signed-off-by: Valentin Popov --- _pages/index.html | 50 +++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) (limited to '_pages/index.html') 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 }}

- - - {% for post in year.items %} - - - - - - +
+ +

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

- -
+ - - {% endfor %} -
- - {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} - - {{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 | xml_escape }}
-{% endfor %} \ No newline at end of file + + + + + + {% endfor %} + + +{% endfor %} -- cgit v1.2.3