Skip to content

feat(blog): add author pages and author frontmatter (#124) - #146

Merged
truthixify merged 1 commit into
wraith-protocol:developfrom
Escelit:feat/blog-author-pages
Aug 27, 2026
Merged

feat(blog): add author pages and author frontmatter (#124)#146
truthixify merged 1 commit into
wraith-protocol:developfrom
Escelit:feat/blog-author-pages

Conversation

@Escelit

@Escelit Escelit commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Closes #124

Summary

Implements blog author pages (#124): maps MDX author frontmatter to src/data/authors.json, adds a /blog/author/:id route, links bylines to author pages, and collapses opted-out authors to "Wraith Team".

Changes

  • src/utils/blog.ts: Author/AuthorProfile types, getAuthorById, resolveAuthor, getPostsByAuthor; each post carries authorName/authorId.
  • src/pages/Blog.tsx: bylines link to /blog/author/:id for opted-in authors; new BlogAuthor page (avatar/initials, bio, links, post list) with graceful "Author Not Found" fallback for unknown ids.
  • src/App.tsx: /blog/author/:authorId route.
  • 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.
  • Added a second MDX post to exercise the author listing; updated docs and tests.

Acceptance

  • /blog/author/:id works for every opted-in author
  • Every post links its author byline to the author page (or "Wraith Team" if opted out)
  • Unknown author ids fall back gracefully (no 500, no crash)
  • Build passes (format + build hooks green, 14 routes; blog + rss tests green)
  • Sitemap/feed include author data (SEO)

)

- 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

# Conflicts:
#	src/pages/Blog.tsx
#	src/utils/blog.ts
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

@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.

@truthixify

Copy link
Copy Markdown
Contributor

Merged first of your three as planned @Escelit. The opt-out collapse to Wraith Team is handled properly. #137 next, then #140.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blog author pages + author frontmatter

2 participants