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">
|
<header class="main__header">
|
||||||
{% if isArticle %}
|
{% if isArticle %}
|
||||||
|
{% if eleventyNavigation %}
|
||||||
<ul class="breadcrumbs">
|
<ul class="breadcrumbs">
|
||||||
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle) %}
|
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle) %}
|
||||||
{%- for entry in breadcrumbNavPages %}
|
{%- for entry in breadcrumbNavPages %}
|
||||||
|
@ -9,6 +10,7 @@
|
||||||
➔
|
➔
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h1>{{ articleTitle }}</h1>
|
<h1>{{ articleTitle }}</h1>
|
||||||
<div class="article__info">
|
<div class="article__info">
|
||||||
|
@ -48,7 +50,12 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% 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" %}
|
{% include "main/content-nav.njk" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue