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

Fix IsAncestor and IsDescendant when the same page is passed #7206

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

tekezo
Copy link
Contributor

@tekezo tekezo commented Apr 23, 2020

IsAncestor and IsDescendant returned true if the same page is passed until the changes of #7097 .

{{ $blog.IsAncestor $blog }} -> true

Some themes (e.g., docsy) depend on this behavior.
This PR changes IsAncestor and IsDescendant to the old behavior.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants