diff --git a/posts.md b/posts.md new file mode 100644 index 0000000..b0f912d --- /dev/null +++ b/posts.md @@ -0,0 +1,38 @@ +--- +layout: page +title: posts | Error257 +--- + +
+ {% if site.posts[0] %} + + {% capture currentyear %}{{ 'now' | date: "%Y" }}{% endcapture %} + {% capture firstpostyear %}{{ site.posts[0].date | date: '%Y' }}{% endcapture %} + {% if currentyear == firstpostyear %} +

This year's posts

+ {% else %} +

{{ firstpostyear }}

+ {% endif %} + + {%for post in site.posts %} + {% unless post.next %} + +

{{ post.date | date: '%Y' }}

+ + + {% endif %} +