feat(blog): add author pages and author frontmatter (#124) - #138
Conversation
) - Map MDX author frontmatter to src/data/authors.json (name, bio, avatar, links, optIn) - Add /blog/author/:id route listing posts by author, most recent first - Link author bylines to the author page; collapse opted-out authors to 'Wraith Team' - Gracefully handle unknown author ids (no 500, no crash) - Include opt-in author routes in sitemap and resolve author names in RSS feed
|
@Escelit is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Escelit Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Thanks @Escelit. Worth coordinating this one, because you have three open PRs here (#137, #138, #140) and all three edit Suggested order, rebasing each on the previous once it merges:
For this PR the conflicts are Take the reading-time and TOC additions from develop and layer your author byline changes on top. |
Closes #124
Summary
Implements blog author pages (#124): maps MDX
authorfrontmatter tosrc/data/authors.json, adds a/blog/author/:idroute, links bylines to author pages, and collapses opted-out authors to "Wraith Team".Changes
src/utils/blog.ts:Author/AuthorProfiletypes,getAuthorById,resolveAuthor,getPostsByAuthor; each post carriesauthorName/authorId.src/pages/Blog.tsx: bylines link to/blog/author/:idfor opted-in authors; newBlogAuthorpage (avatar/initials, bio, links, post list) with graceful "Author Not Found" fallback for unknown ids.src/App.tsx:/blog/author/:authorIdroute.src/data/authors.json+authors-optout.json: seed authors (team opted-out, one opted-in contributor).scripts/sitemap.ts: opt-in author routes.scripts/gen-rss.mjs: resolve author ids to display names in the feed.Acceptance
/blog/author/:idworks for every opted-in author