Sha256: ac71849105fca2c0687befb3dac10276e68e13f0e21c5a4605fe76a38f22497a

Contents?: true

Size: 1.01 KB

Versions: 7

Compression:

Stored size: 1.01 KB

Contents

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

{% include lang.html %}

{% assign df_strftime_m = site.data.locales[lang].df.archives.strftime | default: '/ %m' %}
{% assign df_dayjs_m = site.data.locales[lang].df.archives.dayjs | default: '/ MM' %}

<div id="archives" class="pl-xl-3">

{% for post in site.posts %}
  {% capture cur_year %}{{ post.date | date: "%Y" }}{% endcapture %}

  {% if cur_year != last_year %}
    {% unless forloop.first %}</ul>{% endunless %}
    <div class="year lead">{{ cur_year }}</div>
    <ul class="list-unstyled">
    {% assign last_year = cur_year %}
  {% endif %}

  <li>
  {% 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 ms-1" data-ts="{{ ts }}" data-df="{{ df_dayjs_m }}">
      {{ post.date | date: df_strftime_m }}
    </span>
    <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
  </li>

  {% if forloop.last %}</ul>{% endif %}

{% endfor %}

</div>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jekyll-theme-chirpy-birdly-6.1.2 _layouts/archives.html
jekyll-theme-chirpy-birdly-6.1.0 _layouts/archives.html
jekyll-theme-chirpy-birdly-6.1.1 _layouts/archives.html
jekyll-theme-chirpy-6.1.0 _layouts/archives.html
jekyll-theme-chirpy-birdly-6.0.2 _layouts/archives.html
jekyll-theme-chirpy-6.0.1 _layouts/archives.html
jekyll-theme-chirpy-6.0.0 _layouts/archives.html