-
-
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/hugo #5467
Labels
Milestone
Comments
Closed
bep
added a commit
to bep/hugo
that referenced
this issue
Dec 6, 2018
Fixes gohugoio#5467 Fixes gohugoio#5503
bep
added a commit
to bep/hugo
that referenced
this issue
Dec 6, 2018
Fixes gohugoio#5467 Fixes gohugoio#5503
bep
added a commit
to bep/hugo
that referenced
this issue
Dec 6, 2018
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
bep
added a commit
to bep/hugo
that referenced
this issue
Dec 6, 2018
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
bep
added a commit
to bep/hugo
that referenced
this issue
Dec 6, 2018
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
bep
added a commit
that referenced
this issue
Dec 6, 2018
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
See https://discourse.gohugo.io/t/calling-hugo-version-via-shortcode-not-rendering/15475/5
We added
.Hugo
at some point back when our template funcs was a little hard to manage.It would make more sense if the methods on
.Hugo
was regular global template funcs, so I could do:Etc.
We cannot remove
.Hugo
, and deprecating it would be too much work, so we should just add the new template namespace and update the docs to point to it.The text was updated successfully, but these errors were encountered: