From 03bb550d4698c8db48d86195cca597a72e43269b Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 2 Jan 2020 21:51:24 -0600 Subject: [PATCH] Rename the variable for #47 --- _includes/postslist.njk | 2 +- index.njk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/postslist.njk b/_includes/postslist.njk index d93750c..d081844 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 %} diff --git a/index.njk b/index.njk index 4d89b88..6d5df8b 100644 --- a/index.njk +++ b/index.njk @@ -8,7 +8,7 @@ eleventyNavigation:

      Latest 3 Posts

      {% set postslist = collections.posts | head(-3) %} -{% set counterOffset = collections.posts | length %} +{% set postslistCounter = collections.posts | length %} {% include "postslist.njk" %}

      More posts can be found in the archive.