List of posts
Signed-off-by: Valentin Popov <valentineus@gmail.com>
This commit is contained in:
parent
5dda7f33bb
commit
7bc283dc5e
@ -1,32 +1,24 @@
|
||||
---
|
||||
permalink: "/index.html"
|
||||
layout: default
|
||||
sidebar: true
|
||||
title: "Home"
|
||||
id: index
|
||||
---
|
||||
|
||||
<div class="page">
|
||||
<div class="posts">
|
||||
{% for node in site.posts %}
|
||||
<div class="post">
|
||||
<!-- Date -->
|
||||
<span class="post-date">
|
||||
{{ node.latest_update | default: node.date | date_to_long_string }}
|
||||
</span>
|
||||
|
||||
<!-- Header -->
|
||||
<h1 class="post-title">
|
||||
<a href="{{ node.url | relative_url | uri_escape }}">
|
||||
{{ node.title | smartify | strip_html | normalize_whitespace }}
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<!-- Content -->
|
||||
<span class="post-date">
|
||||
{{ node.description | smartify | strip_html | normalize_whitespace }}
|
||||
<div class="page-heading">Blog</div>
|
||||
<!-- List -->
|
||||
<ul>
|
||||
{% for node in site.posts %}
|
||||
<li class="post-item">
|
||||
<!-- Time -->
|
||||
<span class="meta">
|
||||
<time datetime="{{ node.latest_update | default: node.date | date_to_xmlschema }}">
|
||||
{{ node.latest_update | default: node.date | date_to_string }}
|
||||
</time>
|
||||
</span>
|
||||
</div>
|
||||
<!-- Link -->
|
||||
<a href="{{ node.url | relative_url | uri_escape }}">
|
||||
<span>{{ node.title | smartify | strip_html | normalize_whitespace }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user