blob: adaed0686f6d87fd533bc08ce25587369edad95b (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 | ---
permalink: "index.html"
title: "Home"
layout: page
---
{% assign amount = 0 %}
{% assign postsByYear = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
{% for year in postsByYear %}
  {% capture amount %}{{ amount | plus: 1 }}{% endcapture %}
  <h2>{{ year.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | slugify }}</h2>
  <table itemtype="http://schema.org/BreadcrumbList" itemscope class="table table-striped">
    {% for post in year.items %}
      <tr itemprop="itemListElement" itemtype="http://schema.org/ListItem" itemscope>
        <!-- Position -->
        <td itemprop="position" style="display: none;" hidden>{{ amount }}</td>
        <!-- Date -->
        <td><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_long_string }}</time></td>
        <!-- Title -->
        <td>
          <a itemprop="item" href="{{ post.url | relative_url | uri_escape }}">
            <span itemprop="name">{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
          </a>
        </td>
        <!-- Description -->
        <td itemprop="description">{{ post.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncatewords: 32 | xml_escape }}</td>
      </tr>
    {% endfor %}
  </table>
{% endfor %}
 |