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/hugo #5467

Closed
bep opened this issue Nov 25, 2018 · 1 comment
Closed

Add tpl/hugo #5467

bep opened this issue Nov 25, 2018 · 1 comment

Comments

@bep
Copy link
Member

bep commented Nov 25, 2018

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:

{{ hugo.Version }}

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.

@bep bep added this to the v0.53 milestone Nov 25, 2018
@bep bep self-assigned this Nov 26, 2018
@bep bep modified the milestones: v0.53, v0.52 Nov 26, 2018
@bep bep removed their assignment Nov 26, 2018
@bep bep modified the milestones: v0.52, v0.53 Nov 26, 2018
bep added a commit to bep/hugo that referenced this issue Dec 6, 2018
bep added a commit to bep/hugo that referenced this issue Dec 6, 2018
bep added a commit to bep/hugo that referenced this issue Dec 6, 2018
bep added a commit to bep/hugo that referenced this issue Dec 6, 2018
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 bep closed this as completed in 831d23c Dec 6, 2018
bep added a commit that referenced this issue Dec 6, 2018
@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 23, 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

1 participant