Check if the page has any tags before looking for specific tag
This commit is contained in:
parent
f65d2a9247
commit
51d6fdd300
|
@ -24,7 +24,7 @@ metadata:
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{% if tags.includes("posts") %}
|
{% if tags and tags.includes("posts") %}
|
||||||
{% include "blog/blognav.njk" %}
|
{% include "blog/blognav.njk" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
|
@ -18,7 +18,7 @@ layout: main/base
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if tags.includes("blog pages") %}
|
{% if tags and tags.includes("blog pages") %}
|
||||||
{% include "blog/blognav.njk" %}
|
{% include "blog/blognav.njk" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue