From 00213853bcc17a580b3892f5bf4e327dc5e6d70d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 19 Sep 2018 03:28:19 +0400 Subject: The list of posts forms micro-markup 'Schema.org' Signed-off-by: Valentin Popov --- _pages/index.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to '_pages') diff --git a/_pages/index.html b/_pages/index.html index ecf5f69..adaed06 100644 --- a/_pages/index.html +++ b/_pages/index.html @@ -4,31 +4,33 @@ title: "Home" layout: page --- +{% assign amount = 0 %} {% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} {% for year in postsByYear %} -

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

+ {% capture amount %}{{ amount | plus: 1 }}{% endcapture %} - +

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

+ +
{% for post in year.items %} - + + + + - + - + {% endfor %}
- - - - {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} + + {{ 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 }} - {{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 | xml_escape }}
-{% endfor %} +{% endfor %} \ No newline at end of file -- cgit v1.2.3