Fix issues with rendering breacrumbs and blog nav outside main site
This commit is contained in:
parent
ca4ecd2cee
commit
5ade6af6b0
|
@ -1,5 +1,6 @@
|
|||
<header class="main__header">
|
||||
{% if isArticle %}
|
||||
{% if eleventyNavigation %}
|
||||
<ul class="breadcrumbs">
|
||||
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle) %}
|
||||
{%- for entry in breadcrumbNavPages %}
|
||||
|
@ -9,6 +10,7 @@
|
|||
➔
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<h1>{{ articleTitle }}</h1>
|
||||
<div class="article__info">
|
||||
|
@ -48,7 +50,12 @@
|
|||
</div>
|
||||
{% 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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue