Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 1.22 KB

archivebydate.md

File metadata and controls

10 lines (9 loc) · 1.22 KB
layout title permalink active sitemap
page
Post by Month
/monthview/
archivebydate
false
{% for post in site.posts %}{% unless post.next %}

{{ post.date | date: '%Y' }}

{% else %}{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}{% if year != nyear %}

{{ post.date | date: '%Y' }}

{% endif %}{% endunless %}{% capture month %}{{ post.date | date: '%m%Y' }}{% endcapture %}{% capture nmonth %}{{ post.next.date | date: '%m%Y' }}{% endcapture %}{% if month != nmonth %}{% if forloop.index != 1 %}{% endif %}

{{ post.date | date: '%B %Y' }}

    {% endif %}{% if post.link %}{% else %}
  • {{ post.title }} {% if post.author %} • {{ post.author }}{% endif %}{% if post.date %} • {{ post.date | date: "%B %e, %Y" }}{% endif %}
  • {% endif %}{% endfor %}