Redesigned home page
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
b8c158641a
commit
43da1bdb8c
@ -3,18 +3,26 @@ permalink: "index.html"
|
|||||||
layout: page
|
layout: page
|
||||||
---
|
---
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
|
||||||
<div class="header">
|
|
||||||
<h2 class="header-title">
|
<!-- Links to social networks -->
|
||||||
|
{% include sociallinks.html %}
|
||||||
|
|
||||||
|
{% for year in postsByYear %}
|
||||||
|
<h2>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}</h2>
|
||||||
|
|
||||||
|
{% for post in year.items %}
|
||||||
|
<div class="post-item">
|
||||||
|
<small><time datetime="{{ post.date | date_to_xmlschema}}">{{ post.date | date_to_long_string }}</time></small>
|
||||||
|
<h4>
|
||||||
<a href="{{ post.url | relative_url | uri_escape }}">
|
<a href="{{ post.url | relative_url | uri_escape }}">
|
||||||
{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
|
{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h4>
|
||||||
|
|
||||||
{% if post.description %}
|
{% if post.description %}
|
||||||
<p class="header-annotation">
|
<p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 }}</p>
|
||||||
{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<time>{{ post.date | date_to_long_string }}</time>
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user