From 43da1bdb8cc02f556eb325a8a9af17b4c874ecbd Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 23 Apr 2018 01:30:25 +0400 Subject: Redesigned home page Signed-off-by: Valentin Popov --- _pages/index.html | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to '_pages/index.html') diff --git a/_pages/index.html b/_pages/index.html index bfc4958..97f5032 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -3,18 +3,26 @@ permalink: "index.html" layout: page --- -{% for post in site.posts %} -
-

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

- {% if post.description %} -

- {{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify }} -

- {% endif %} - -
+{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} + + +{% include sociallinks.html %} + +{% for year in postsByYear %} +

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

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

+ + {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }} + +

+ + {% if post.description %} +

{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 }}

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