Update to site

This commit is contained in:
Paulus Schoutsen 2014-12-21 12:17:37 -08:00
parent 3345fa5897
commit b0bdfe2fe9
244 changed files with 11618 additions and 12 deletions

View file

@ -0,0 +1,17 @@
---
layout: page
title: "Blog index"
---
<div id="archive-list">
{% for post in site.posts reverse %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include blog/archive_post.html %}
</article>
{% endfor %}
</div>

21
source/blog/index.html Normal file
View file

@ -0,0 +1,21 @@
---
layout: default
---
{% assign index = true %}
{% for post in paginator.posts %}
{% assign content = post.content %}
<article class="listing">
{% include blog/post/article.html %}
</article>
<hr>
{% endfor %}
<div class="pagination">
{% if paginator.next_page %}
<a class="btn pull-left" href="{{paginator.next_page_path}}">&larr; Older</a>
{% endif %}
{% if paginator.previous_page %}
<a class="btn pull-right" href="{{paginator.previous_page_path}}">Newer &rarr;</a>
{% endif %}
</div>