From 50ec3a7e5ef769a5780723cba438cea9fe04b2be Mon Sep 17 00:00:00 2001 From: Den McHenry Date: Tue, 4 Sep 2018 12:11:40 -0700 Subject: [PATCH] Add `reversed` attribute to posts list Without CSS, the last post will be number 1. In browsers other than IE and Edge (where it's currently under consideration), the `reversed` attribute will match the effect of the CSS counter. I like putting the attribute first so it's clear that it's a particular kind of "ordered list: reversed." --- _includes/postslist.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/postslist.njk b/_includes/postslist.njk index f6d6c0a..88882d9 100644 --- a/_includes/postslist.njk +++ b/_includes/postslist.njk @@ -1,4 +1,4 @@ -
    +
      {% for post in postslist | reverse %}
    1. {% if post.data.title %}{{ post.data.title }}{% else %}{{ post.url }}{% endif %}