From 5ade6af6b071c6887e3714f7097522c05ccb4f5a Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:04:25 +0800 Subject: [PATCH] Fix issues with rendering breacrumbs and blog nav outside main site --- src/_includes/global/content.njk | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/_includes/global/content.njk b/src/_includes/global/content.njk index 143f31dd..fe48ae5a 100644 --- a/src/_includes/global/content.njk +++ b/src/_includes/global/content.njk @@ -1,14 +1,16 @@
{% if isArticle %} - + {% if eleventyNavigation %} + + {% endif %}

{{ articleTitle }}

@@ -48,7 +50,12 @@
{% endif %} - {% if tags and tags.includes("contents") or page.url === "/articles/" or tags and tags.includes("blog pages") %} + {% if + tags and tags.includes("articles") + or tags and tags.includes("posts") + or page.url === "/articles/" + or tags and tags.includes("blog pages") + %} {% include "main/content-nav.njk" %} {% endif %}