diff --git a/site/_includes/collection.njk b/site/_includes/collection.njk
index ec4dbac..bb55b40 100644
--- a/site/_includes/collection.njk
+++ b/site/_includes/collection.njk
@@ -10,6 +10,6 @@ eleventyComputed:
{% set tag = page.fileSlug %}
{% if collections[tag] %}
- {{ collectionList(collections[tag]) }}
+ {{ collectionList(tag) }}
{% endif %}
diff --git a/site/_includes/components/collectionList.njk b/site/_includes/components/collectionList.njk
index 98be34e..f0920fe 100644
--- a/site/_includes/components/collectionList.njk
+++ b/site/_includes/components/collectionList.njk
@@ -1,8 +1,8 @@
{%- from "components/tagList.njk" import tagList with context -%}
-{% macro collectionList(collection, limit=0) %}
+{% macro collectionList(tagName, limit=0) %}
- {%- for item in collection | reverse -%}
+ {%- for item in collections[tagName] | reverse -%}
{%- if (limit === 0 or loop.index <= limit) -%}
-
{{item.data.title}}
@@ -15,7 +15,7 @@
{%- endif -%}
{%- if (limit !== 0 and loop.index == limit + 1) -%}
-
- More {{name}}…
+ More {{tagName}}…
{%- endif -%}
{%- endfor -%}
diff --git a/site/_includes/home.njk b/site/_includes/home.njk
index 0520347..9998cfb 100644
--- a/site/_includes/home.njk
+++ b/site/_includes/home.njk
@@ -7,7 +7,7 @@ layout: "base.njk"
{%- for name, collection in collections -%}
{%- if name in ["posts"] -%}
{{name | capitalize }}
- {{ collectionList(collection, limit=5) }}
+ {{ collectionList(name, limit=5) }}
{%- endif -%}
{%- endfor -%}
diff --git a/site/pages/tag.njk b/site/pages/tag.njk
index e876f84..a67e0cd 100644
--- a/site/pages/tag.njk
+++ b/site/pages/tag.njk
@@ -18,7 +18,5 @@ useTitle: true
- {% if collections[tag] %}
- {{ collectionList(collections[tag]) }}
- {% endif %}
+ {{ collectionList(tag) }}