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

Document additional File variables #1623

Closed
jmooring opened this issue Jan 4, 2022 · 1 comment · Fixed by #2037
Closed

Document additional File variables #1623

jmooring opened this issue Jan 4, 2022 · 1 comment · Fixed by #2037

Comments

@jmooring
Copy link
Member

jmooring commented Jan 4, 2022

The following are not listed on https://gohugo.io/variables/files/:

.File.Filename
.File.FileInfo
.File.IsZero
.File.Section

Ref: https://github.com/gohugoio/hugo/blob/master/source/fileInfo.go

@bep
Copy link
Member

bep commented Nov 22, 2022

We need to hold off on this change. Most/all of this is considered internal API and not documented by purpose (especially the FileInfo.Meta struct; it is used internally in Hugo and will certainly change without notice.)

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

Successfully merging a pull request may close this issue.

2 participants