diff --git a/_includes/components/sections/recent-posts.njk b/_includes/components/sections/recent-posts.njk index afb4b25..adea203 100644 --- a/_includes/components/sections/recent-posts.njk +++ b/_includes/components/sections/recent-posts.njk @@ -64,10 +64,10 @@ {% if post.data.category | withoutGardenTags %} {% if post.data.category is string %} - {{ post.data.category }} + {{ post.data.category }} {% else %} {% for cat in (post.data.category | withoutGardenTags) %} - {{ cat }} + {{ cat }} {% endfor %} {% endif %} @@ -104,10 +104,10 @@ {% if post.data.category | withoutGardenTags %} {% if post.data.category is string %} - {{ post.data.category }} + {{ post.data.category }} {% else %} {% for cat in (post.data.category | withoutGardenTags) %} - {{ cat }} + {{ cat }} {% endfor %} {% endif %} @@ -149,10 +149,10 @@ {% if post.data.category | withoutGardenTags %} {% if post.data.category is string %} - {{ post.data.category }} + {{ post.data.category }} {% else %} {% for cat in (post.data.category | withoutGardenTags) %} - {{ cat }} + {{ cat }} {% endfor %} {% endif %} @@ -189,10 +189,10 @@ {% if post.data.category | withoutGardenTags %} {% if post.data.category is string %} - {{ post.data.category }} + {{ post.data.category }} {% else %} {% for cat in (post.data.category | withoutGardenTags) %} - {{ cat }} + {{ cat }} {% endfor %} {% endif %} @@ -230,10 +230,10 @@ {% if post.data.category | withoutGardenTags %} {% if post.data.category is string %} - {{ post.data.category }} + {{ post.data.category }} {% else %} {% for cat in (post.data.category | withoutGardenTags) %} - {{ cat }} + {{ cat }} {% endfor %} {% endif %} @@ -275,10 +275,10 @@ {% if post.data.category | withoutGardenTags %} {% if post.data.category is string %} - {{ post.data.category }} + {{ post.data.category }} {% else %} {% for cat in (post.data.category | withoutGardenTags) %} - {{ cat }} + {{ cat }} {% endfor %} {% endif %} @@ -306,10 +306,10 @@ {% if post.data.category | withoutGardenTags %} {% if post.data.category is string %} - {{ post.data.category }} + {{ post.data.category }} {% else %} {% for cat in (post.data.category | withoutGardenTags) %} - {{ cat }} + {{ cat }} {% endfor %} {% endif %} diff --git a/_includes/components/widgets/categories.njk b/_includes/components/widgets/categories.njk index fa58d91..300d3f0 100644 --- a/_includes/components/widgets/categories.njk +++ b/_includes/components/widgets/categories.njk @@ -1,12 +1,13 @@ -{# Categories/Tags Widget #} +{# Categories/Tags Widget — shows root-level tags; nested children visible on the category page #} {% if categories and categories.length %}

Categories

diff --git a/_includes/components/widgets/post-categories.njk b/_includes/components/widgets/post-categories.njk index 87debc7..e470929 100644 --- a/_includes/components/widgets/post-categories.njk +++ b/_includes/components/widgets/post-categories.njk @@ -5,12 +5,12 @@

Categories

{% if category is string %} - + {{ category }} {% else %} {% for cat in category %} - + {{ cat }} {% endfor %} diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 64135e9..548abfe 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -103,8 +103,8 @@ {% endif %} {% if category and page.url and page.url.startsWith('/categories/') and page.url != '/categories/' %} - - + + {% endif %} diff --git a/_includes/layouts/page.njk b/_includes/layouts/page.njk index cd9228b..63d1249 100644 --- a/_includes/layouts/page.njk +++ b/_includes/layouts/page.njk @@ -88,12 +88,12 @@ withSidebar: true