Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Add page to show old news items
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwab committed Jul 3, 2014
1 parent f1fad7a commit 10fb517
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 99-allnews.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
layout: default
title: news archive
permalink: news.html
noToc: true
---

<h1>News Archive</h1>

This is an archive of all of the news posts that have ever appeared.

<ul class="posts">
{% for post in site.posts %}
{% capture year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% if year != oldyear %}<h2>{{ year }}</h2>{% endif %}
{% capture oldyear %}{{ year }}{% endcapture %}

<li><span>{{ post.date | date_to_string }}</span> <br>&raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>

0 comments on commit 10fb517

Please sign in to comment.