Last active
June 6, 2016 08:42
-
-
Save TangChr/72cdfdd3dc1e25eddc75 to your computer and use it in GitHub Desktop.
Liquid/Jekyll: Monthly Archive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="post-archive"> | |
{% for p in site.posts %} | |
<li> | |
{% assign fdate = p.date | date: '%b %Y' %} | |
{% if cur_date != fdate %} | |
{% assign cur_date = fdate %} | |
<h3>{{ p.date | date: '%B, %Y' }}</h3> | |
{% endif %} | |
<a href="{{ p.url }}">{{ p.title }}</a> | |
</li> | |
{% endfor %} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment