Check for isArticle conditional instead of article tags for content nav

This commit is contained in:
Leilukin 2024-04-19 06:37:39 +08:00 committed by Helen Chong
parent b4eb91f6c0
commit 028bccbc03

View File

@ -24,7 +24,7 @@ layout: main/base
</div>
{% endif %}
{% if title === "Articles" or tags and tags.includes("articles") or tags and tags.includes("blog pages") %}
{% if isArticle or title === "Articles" or tags and tags.includes("blog pages") %}
{% include "main/content-nav.njk" %}
{% endif %}
</div>