aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-07 03:12:28 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-07 03:12:28 +0300
commit7bc283dc5e848c93f502da16bd6326be4007baf5 (patch)
treecb63b7bc1ac59e59afb1d92d5ba46a2daa58d34e
parent5dda7f33bbdbcb1cc3434a8f14be0e572d6cbef5 (diff)
downloadpopov.link-7bc283dc5e848c93f502da16bd6326be4007baf5.tar.xz
popov.link-7bc283dc5e848c93f502da16bd6326be4007baf5.zip
List of posts
Signed-off-by: Valentin Popov <valentineus@gmail.com>
-rw-r--r--_pages/index.html46
1 files changed, 19 insertions, 27 deletions
diff --git a/_pages/index.html b/_pages/index.html
index 280e8b6..353d880 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -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 }}
- </span>
- </div>
- {% endfor %}
- </div>
-</div>
+<!-- Header -->
+<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>
+ <!-- Link -->
+ <a href="{{ node.url | relative_url | uri_escape }}">
+ <span>{{ node.title | smartify | strip_html | normalize_whitespace }}</span>
+ </a>
+ </li>
+ {% endfor %}
+</ul>