Initial commit
This commit is contained in:
commit
6d849e9549
109 files changed
+40227
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
---
|
||||
layout: page
|
||||
title: Articles
|
||||
permalink: /archive/
|
||||
---
|
||||
# News Archive
|
||||
|
||||
{% for post in site.posts %}{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
||||
|
||||
{% if forloop.first %}<h2 class="c-archives__year" id="{{ this_year }}-ref">{{this_year}}</h2>
|
||||
<ul class="c-archives__list">{% endif %}
|
||||
<li class="c-archives__item">
|
||||
{{ post.date | date: "%b %-d, %Y" }}: <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
||||
</li>{% if forloop.last %}</ul>{% else %}{% if this_year != next_year %}
|
||||
</ul>
|
||||
<h2 class="c-archives__year" id="{{ next_year }}-ref">{{next_year}}</h2>
|
||||
<ul class="c-archives__list">{% endif %}{% endif %}{% endfor %}
|
||||
Reference in new issue
Block a user