website/cmd
Dmitri Shuralyov d43f0ec556 internal/blog: populate author names in feeds
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>
2024-08-16 19:56:31 +00:00
..
adminapp cmd/{adminapp,adminredirect,googlegolangorg}: update App Engine runtime 2023-10-12 21:55:11 +00:00
adminredirect cmd/{adminapp,adminredirect,googlegolangorg}: update App Engine runtime 2023-10-12 21:55:11 +00:00
golangorg internal/blog: populate author names in feeds 2024-08-16 19:56:31 +00:00
googlegolangorg cmd/{adminapp,adminredirect,googlegolangorg}: update App Engine runtime 2023-10-12 21:55:11 +00:00
locktrigger cmd/locktrigger: migrate to cloud.google.com message types 2023-10-02 18:37:36 +00:00
screentest cmd/screentest,internal/screentest: add flag to run subset of tests 2023-11-10 12:12:18 +00:00
versionprune all: gofmt 2022-04-11 19:46:40 +00:00