-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Page.Author and .Authors and Site.Authors do nothing #10551
Comments
Is there some documentation that lead you down this path? If so, it should be removed. See; |
https://gohugo.io/variables/site/:
https://gohugo.io/variables/page/#access-nested-fields-in-front-matter:
https://pkg.go.dev/github.com/gohugoio/hugo/hugolib#SiteInfo: type SiteInfo struct {
Authors page.AuthorList https://pkg.go.dev/github.com/gohugoio/hugo@v0.108.0/resources/page#PageWithoutContent: type PageWithoutContent interface {
...
// TODO(bep)
AuthorProvider |
Also note that in https://discourse.gohugo.io/t/site-author-usage/31459/8, you suggest using Page.Params.author, not Page.Author:
|
https://github.com/gohugoio/hugo/blob/master/hugolib/page__meta.go#L132
https://github.com/gohugoio/hugo/blob/master/hugolib/page__meta.go#L142 See also:
|
Sure, but deprecated doesn't mean broken or discontinued. Did they never work? That would be different. |
To the best of my knowledge they were never implemented, but that's ancient history. The documentation (https://gohugo.io/documentation/) should reference nothing but |
Correction. See gohugoio/hugoDocs@2c0125b.
|
@willfaught They did work as I had this working on a local build on a machine that died on me back in May & I am so annoyed that I hadn't managed to back up my working on the theme that I used it in |
@jmooring is there a blog post explaining why these are being deprecated as right now this to me makes no sense without a better understanding of the though of the future direction of travel |
@jmooring sorry but if people are reliant on prior versions of software that had features that they are using that are then being deprecated it is totally immoral for one to delete that documentation. mark it as not current/archived/not maintained by the project for sure, but don't be so damn cheap as to delete it entirely. |
sure encourage but don't belittle those that aren't able to keep up with the pace of change and are set at a specific version for what ever reason that may be, mostly likely wanting stability and not instability |
Perhaps you're unfamiliar with Go module versioning, which uses semver. Minor version 0 allows for breaking changes between minor versions. We shouldn't expect API stability until v1.0.0 is released. I would guess they try to minimize breaks, regardless. |
nah i'm well versed with it, I just don't agree at deleting documentation ever when it should be pointed that this is out of date and not being maintained, which is the morally right thing to do and even if it is not the cheap thing to do |
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. |
I can't seem to be able to set Page.Author or .Authors. If I set
author:
andauthors:
in frontmatter, they appear in .Params, not .Author or .Authors.Weirdly, if I set Page.Authors to a string or map instead of a string slice, then Hugo fails with an error:
Site.Authors seems to do nothing too.
With this site config:
and with this page frontmatter:
and this page template:
This is printed:
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: