fix: author is added in _fields for the blog slug - #613
Open
anurag-p6 wants to merge 1 commit into
Open
Conversation
Signed-off-by: Anurag Pandey <pandeyanurag3359@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Concisely describe the change
Fixes #612
In
src/pages/index.tsx(line 56) andsrc/pages/features.tsx(line 180), add author to the_fieldsquery parameter:_fields=id, author, author_info, title, wbDate, jetpack_featured_media_url, link, excerpt
Tested against the API without author in
_fields, the response returns author_link: "https://blog.podman.io/author/". With it included, the correct slug is returned e.g. "https://blog.podman.io/author/mloriedo/".Before screenshot / screen recording
2026-08-01.02-10-44.-.Trim.mp4
After screenshot / screen recording
2026-08-01.02-20-06.-.Trim.mp4
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)