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

Add a function provides global access to the current page #10222

Closed
Tiscs opened this issue Aug 29, 2022 · 2 comments
Closed

Add a function provides global access to the current page #10222

Tiscs opened this issue Aug 29, 2022 · 2 comments

Comments

@Tiscs
Copy link

Tiscs commented Aug 29, 2022

Add a function(e.g. page) provides global access to the current page, likes the function site. It's useful when writing partial templates, such as need to check if a page is the .CurrentSection.

@bep
Copy link
Member

bep commented Aug 29, 2022

See #9339

And I agree about the "usefulness". I have this more or less implemented in another branch, but I keep getting side tracked :-)

@bep bep closed this as completed Aug 29, 2022
@github-actions
Copy link

This issue 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 Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants