Sha256: 114348b0281734665f9df1dd91f51e49dc7e00329e2f4a93542e38653e3b9b53

Contents?: true

Size: 1.34 KB

Versions: 5

Compression:

Stored size: 1.34 KB

Contents

---
layout: page
# The Archives of posts.
---

{% include lang.html %}

{% if site.prefer_datetime_locale == 'en' or lang == 'en' %}
  {% assign df_strftime_m = '%b' %}
  {% assign df_dayjs_m = 'MMM' %}
{% else %}
  {% assign df_strftime_m = '/ %m' %}
  {% assign df_dayjs_m = '/ MM' %}
{% endif %}

<div id="archives" class="pl-xl-2">
{% for post in site.posts %}
  {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
  {% capture pre_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
  {% if forloop.first %}
    {% assign last_day = "" %}
    {% assign last_month = "" %}
  <span class="lead">{{this_year}}</span>
  <ul class="list-unstyled">
  {% endif %}
    <li>
      <div>
        {% assign ts = post.date | date: '%s' %}
        <span class="date day" data-ts="{{ ts }}" data-df="DD">
          {{ post.date | date: "%d" }}
        </span>
        <span class="date month small text-muted" data-ts="{{ ts }}" data-df="{{ df_dayjs_m }}">
          {{ post.date | date: df_strftime_m }}
        </span>
        <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
      </div>
    </li>
  {% if forloop.last %}
  </ul>
  {% elsif this_year != pre_year %}
  </ul>
  <span class="lead">{{pre_year}}</span>
  <ul class="list-unstyled">
    {% assign last_day = "" %}
    {% assign last_month = "" %}
  {% endif %}
{% endfor %}
</div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jekyll-theme-abd3lraouf-5.2.9 _layouts/archives.html
jekyll-theme-abd3lraouf-5.2.8 _layouts/archives.html
jekyll-theme-abd3lraouf-5.2.7 _layouts/archives.html
jekyll-theme-chirpy-5.2.1 _layouts/archives.html
jekyll-theme-chirpy-5.2.0 _layouts/archives.html