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 tpl/sites #6211

Closed
regisphilibert opened this issue Aug 14, 2019 · 2 comments
Closed

Add tpl/sites #6211

regisphilibert opened this issue Aug 14, 2019 · 2 comments
Labels

Comments

@regisphilibert
Copy link
Member

This should be labeled as a wish...

I know we should really limit those global function and the wish was to stop at site and hugo.
But there's still one page method desperately needed in the layout tree or "returning" partilas and for which we'd rather avoid having to pass the page context all the way down the "tree".

This is .Sites which I (maybe just me) often to find the "default language" site when in another language. (.Sites.First)

@bep
Copy link
Member

bep commented Aug 14, 2019

You can do ... site.Sites.First.

@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 Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants