-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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/site #5470
Comments
I guess that makes sense. But we should probably stop with this one ... Note that I'm not sure about the "how complicated", because there is a dependency graph that may make this harder than trivial... |
Got it. It's all about the complexity/critical ratio. |
This means that the current `Site` is available as a global, so you can do `site.IsServer` etc. Fixes gohugoio#5470
This means that the current `Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer` `hugo.Version` etc. Fixes gohugoio#5470 Fixes gohugoio#5467 Fixes gohugoio#5503
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc. Fixes gohugoio#5470 Fixes gohugoio#5467 Fixes gohugoio#5503
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc. Fixes gohugoio#5470 Fixes gohugoio#5467 Fixes gohugoio#5503
* Change .Site call by site which was include in hugo 0.53 * https://github.com/gohugoio/hugo/releases/tag/v0.53 * gohugoio/hugo#5470 (comment)
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. |
If it's not much more complicated than #5467, it would be useful to also have
site
globally available.It would save having to pass the Page Context to a template which only a needs few params on top of being able to use a few
.Site
variable/method. (ex:.Site.IsServer
#4981 (comment))The text was updated successfully, but these errors were encountered: