Sha256: 160d9900c356b03686d31565d0f88c01f23fc497e238d3919e8657666a6ccb38
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
--- layout: page home-title: Welcome to zhonger's blog! description: Writing, writing, writing ... permalink: /archives.html cover: https://images.unsplash.com/photo-1465189684280-6a8fa9b19a7a?w=1600&q=900 --- <h2>Archives</h2> {% for post in site.posts %} {% unless post.next %} <h3>{{ post.date | date: '%Y' }}</h3> {% else %} {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} {% if year != nyear %} <h3>{{ post.date | date: '%Y' }}</h3> {% endif %} {% endunless %} <li> <p class="archives-title"> <span class="archives-date"> {% comment %} {{ post.date | date: "%b %-d, %Y" }} {% endcomment %} {% comment %} {{ post.date | date: "%Y%-m%-d" }} {% endcomment %} {% case site.formats.time %} {% when 0 %} {{ post.date | date: "%Y-%m-%d" }} {% when 1 %} {{ post.date | date_to_string }} {% else %} {{ post.date | date: "%Y年%-m月%-d日" }} {% endcase %} </span> <a href="{{ post.url | prepend: site.baseurl }}"> {{ post.title }} </a> </p> </li> {% endfor %}
Version data entries
4 entries across 4 versions & 1 rubygems