mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-14 05:20:49 +00:00
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…
x
Reference in New Issue
Block a user