layout | title | permalink |
---|---|---|
page |
存档 |
/archive/ |
{% assign post_year1 = "" %} {% for post in site.posts %}{% capture post_year2 %}{{ post.date | date: '%Y' }}{% endcapture %}{% if post_year1 != post_year2 %}{% assign post_year1 = post_year2 %}
{% endif %} [{{ post.title }}]({{ post.url }}) {{ post.date | date_to_long_string }}
{% endfor %}