aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-05-15 02:11:27 +0300
committerValentin Popov <info@valentineus.link>2018-05-15 02:11:27 +0300
commitd86429538f24b00bec6fb838fe37b4a2ea5b5b91 (patch)
tree7588b53499ddbb0ed2c2ea1937805c77182f4add
parent3c769813c542cede3d10b190a66f76c9a9371f9f (diff)
downloadpopov.link-d86429538f24b00bec6fb838fe37b4a2ea5b5b91.tar.xz
popov.link-d86429538f24b00bec6fb838fe37b4a2ea5b5b91.zip
Updated list of posts
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--_pages/index.html35
1 files changed, 21 insertions, 14 deletions
diff --git a/_pages/index.html b/_pages/index.html
index 3257c6a..d313ba8 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -5,22 +5,29 @@ layout: page
{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
-<!-- Links to external resources -->
-{% include external_links.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 | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
- {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
- </a>
- </h4>
+ <table class="table table-striped">
+ {% for post in year.items %}
+ <tr>
+ <!-- Date -->
+ <td>
+ <time datetime="{{ post.date | date_to_xmlschema}}">{{ post.date | date_to_long_string }}</time>
+ </td>
+
+ <!-- Title -->
+ <td>
+ <a href="{{ post.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
+ {{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
+ </a>
+ </td>
- <p>{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 | xml_escape }}</p>
- </div>
- {% endfor %}
+ <!-- Description -->
+ <td>
+ {{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 | xml_escape }}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
{% endfor %}