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

Subpages fail to update on changes to draft field. #97

Open
scottredig opened this issue Nov 26, 2024 · 0 comments
Open

Subpages fail to update on changes to draft field. #97

scottredig opened this issue Nov 26, 2024 · 0 comments

Comments

@scottredig
Copy link
Contributor

I have this snipped in my index.shtml which lists all of the blog posts:

<ctx :loop="$page.subpages()"><ctx :if="$loop.it.draft.not()">

However, changing the value of the draft field doesn't actually update whether an item appears in the list or not. The only way I could get it to update it is if I clear .zig-cache and zig-out. $page.draft appears to update properly, so it seems specific to subpages(), though I didn't test to see if it's specific to .draft.

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