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 }}
|
||||
</article>
|
||||
|
||||
{% if tags.includes("posts") %}
|
||||
{% if tags and tags.includes("posts") %}
|
||||
{% include "blog/blognav.njk" %}
|
||||
{% endif %}
|
||||
</div>
|
|
@ -18,7 +18,7 @@ layout: main/base
|
|||
{{ content | safe }}
|
||||
</div>
|
||||
|
||||
{% if tags.includes("blog pages") %}
|
||||
{% if tags and tags.includes("blog pages") %}
|
||||
{% include "blog/blognav.njk" %}
|
||||
{% endif %}
|
||||
</div>
|
Loading…
Reference in New Issue