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 -->
|
||||||
<a href="{{ post.url | relative_url | uri_escape }}">
|
{% include sociallinks.html %}
|
||||||
{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
|
|
||||||
</a>
|
{% for year in postsByYear %}
|
||||||
</h2>
|
<h2>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}</h2>
|
||||||
{% if post.description %}
|
|
||||||
<p class="header-annotation">
|
{% for post in year.items %}
|
||||||
{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
|
<div class="post-item">
|
||||||
</p>
|
<small><time datetime="{{ post.date | date_to_xmlschema}}">{{ post.date | date_to_long_string }}</time></small>
|
||||||
{% endif %}
|
<h4>
|
||||||
<time>{{ post.date | date_to_long_string }}</time>
|
<a href="{{ post.url | relative_url | uri_escape }}">
|
||||||
</div>
|
{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}
|
||||||
|
</a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
{% if post.description %}
|
||||||
|
<p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user