Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (24 sloc) 932 Bytes
title layout permalink
News Archive
news
/news/archive/

{% assign postsByYear = site.posts | group_by_exp:"page", "page.date | date: '%Y'" %}

{% for year in postsByYear %} {{year.name}}
    <div>
        <div class="collapse in" id="{{year.name}}" >
            {% for post in year.items %}
                <article class="news">
                    <h3>
                        {{post.title}}
                        <small class="pull-right">{{ post.date | date: '%B %d, %Y' }}</small>
                    </h3>

                    {{ post.content }}
                </article>
            {% endfor %}
        </div>
    </div>
{% endfor %}
You can’t perform that action at this time.