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 · 0 comments

Comments

Projects
None yet
1 participant
@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 the Enhancement label Nov 25, 2018

@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

Add tpl/site and tpl/hugo
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

Add tpl/site and tpl/hugo
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

Add tpl/site and tpl/hugo
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 in 831d23c Dec 6, 2018

bep added a commit that referenced this issue Dec 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment