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) %}