Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with_scope parent doesn't work on pages #232

Open
greyskin opened this issue Aug 22, 2023 · 0 comments
Open

with_scope parent doesn't work on pages #232

greyskin opened this issue Aug 22, 2023 · 0 comments

Comments

@greyskin
Copy link

greyskin commented Aug 22, 2023

{% with_scope published: true %} works fine - indicating that with_scope does work on page collections.

However, the page parent drop doesn't appear to be accessible. Is it supposed to be?

The following code will print out a link to every page on a site, instead of only pages that are children of the specified parent page:

{% with_scope parent: some_page_slug %}
    {% for page in site.pages %}
        <a href="{% path_to page %}">{{ page.title }}</a>
    {% endfor %}
{% endwith_scope %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant