{%- set items = resource.pages|find_demo_in_component(post.meta.directory) %} {%- if items.length > 0 %}