List of posts

Signed-off-by: Valentin Popov <valentineus@gmail.com>
This commit is contained in:
Valentin Popov 2018-04-07 00:12:28 +00:00
parent 5dda7f33bb
commit 7bc283dc5e

View File

@ -1,32 +1,24 @@
--- ---
permalink: "/index.html" permalink: "/index.html"
layout: default layout: default
sidebar: true
title: "Home"
id: index
--- ---
<div class="page"> <!-- Header -->
<div class="posts"> <div class="page-heading">Blog</div>
<!-- List -->
<ul>
{% for node in site.posts %} {% for node in site.posts %}
<div class="post"> <li class="post-item">
<!-- Date --> <!-- Time -->
<span class="post-date"> <span class="meta">
{{ node.latest_update | default: node.date | date_to_long_string }} <time datetime="{{ node.latest_update | default: node.date | date_to_xmlschema }}">
{{ node.latest_update | default: node.date | date_to_string }}
</time>
</span> </span>
<!-- Link -->
<!-- Header -->
<h1 class="post-title">
<a href="{{ node.url | relative_url | uri_escape }}"> <a href="{{ node.url | relative_url | uri_escape }}">
{{ node.title | smartify | strip_html | normalize_whitespace }} <span>{{ node.title | smartify | strip_html | normalize_whitespace }}</span>
</a> </a>
</h1> </li>
<!-- Content -->
<span class="post-date">
{{ node.description | smartify | strip_html | normalize_whitespace }}
</span>
</div>
{% endfor %} {% endfor %}
</div> </ul>
</div>