-
Notifications
You must be signed in to change notification settings - Fork 18k
x/website: /blog/feed.atom missing an author field #68869
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
Milestone
Comments
Change https://go.dev/cl/605537 mentions this issue: |
gopherbot
pushed a commit
to golang/website
that referenced
this issue
Aug 16, 2024
Go blog posts have metadata like: by: - Author Name - Maybe Another Author Those YAML lists were decoded into a slice of empty interfaces, each holding a string, and all that was being ignored. Update it to parse the []any type of p["by"] and to return an error if there aren't any authors. There are only 2 existing blog posts that cause such errors, but they're very old and can be ignored (or updated if needed). There's probably more that can be done, like having one <author> XML item per 'by' item in the YAML/JSON metadata of blog posts, but this is a reasonable step forward. For golang/go#68869. Change-Id: I7b97a09b006bacf4835442a749cb0e467c7dbb47 Reviewed-on: https://go-review.googlesource.com/c/website/+/605537 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Hongxiang Jiang <hxjiang@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Closing it as the issue has been resolved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the URL of the page with the issue?
https://go.dev/blog/feed.atom
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Screenshot
n/a
What did you do?
What did you expect to see?
<author></author>
for an entry that has same value as an author of corresponding article.Example:
<author><name>Dmitri Shuralyov</name></author>
What did you see instead?
Atom entry for https://go.dev/blog/go1.23 contains
<author><name/></author>
atom specs has the following:
<author>
and<contributor>
describe a person, corporation, or similar entity. It has one required element, name, and two optional elements: uri, email.<name>
conveys a human-readable name for the person.So, in conclusion, feed.atom doesn't follow the spec.
While
<entry>
elements do have<author>
elements and technically<name>
is filled, it is filled by nothing which is not "a human-readable name for the person"The text was updated successfully, but these errors were encountered: