mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
feat: add author pages at /author/:authorSlug with clickable author names in posts
Add author archive pages displaying all posts by a specific author, following the existing tag pages pattern. Author names in post headers are now clickable links that navigate to the author's page. Changes: - Add by_authorName index to posts table (convex/schema.ts) - Add getAllAuthors and getPostsByAuthor queries (convex/posts.ts) - Create AuthorPage.tsx component with list/cards view toggle - Add /author/:authorSlug route (src/App.tsx) - Make authorName clickable in Post.tsx for posts and pages - Add author link and page styles (src/styles/global.css) - Add author pages to sitemap (convex/http.ts) - Update documentation: files.md, TASK.md, changelog.md, changelog-page.md - Save implementation plan to prds/authorname-blogs.md
This commit is contained in:
@@ -9,6 +9,7 @@ readTime: "2 min read"
|
||||
featured: false
|
||||
featuredOrder: 0
|
||||
blogFeatured: false
|
||||
authorName: "Wayne Sutton"
|
||||
aiChat: false
|
||||
image: /images/1225-changelog.png
|
||||
excerpt: "Thank you for the stars, forks, and feedback. More AI-first publishing features are coming."
|
||||
|
||||
@@ -10,6 +10,37 @@ layout: "sidebar"
|
||||
All notable changes to this project.
|
||||

|
||||
|
||||
## v2.3.0
|
||||
|
||||
Released December 31, 2025
|
||||
|
||||
**Author pages feature**
|
||||
|
||||
- Author archive pages at `/author/:authorSlug` displaying all posts by that author
|
||||
- Click on any author name in a post to view all their posts
|
||||
- View mode toggle (list/cards) with localStorage persistence
|
||||
- Mobile responsive layout matching tag pages design
|
||||
- Sitemap updated to include all author pages dynamically
|
||||
- New Convex queries for author data
|
||||
- `getAllAuthors`: Returns all unique authors with post counts
|
||||
- `getPostsByAuthor`: Returns posts by a specific author slug
|
||||
- Author name links in post headers
|
||||
- Author names now clickable with hover underline effect
|
||||
- Works on both blog posts and pages with authorName field
|
||||
- Follows existing tag pages pattern for consistent UX
|
||||
|
||||
**Technical details:**
|
||||
|
||||
- Added `by_authorName` index to posts table in `convex/schema.ts`
|
||||
- New queries in `convex/posts.ts`: `getAllAuthors`, `getPostsByAuthor`
|
||||
- New component: `src/pages/AuthorPage.tsx` (based on TagPage.tsx pattern)
|
||||
- Added route `/author/:authorSlug` in `src/App.tsx`
|
||||
- Updated `src/pages/Post.tsx` to make authorName a clickable Link
|
||||
- Added author link and page styles to `src/styles/global.css`
|
||||
- Added author pages to sitemap in `convex/http.ts`
|
||||
|
||||
Updated files: `convex/schema.ts`, `convex/posts.ts`, `convex/http.ts`, `src/pages/AuthorPage.tsx`, `src/App.tsx`, `src/pages/Post.tsx`, `src/styles/global.css`, `files.md`, `prds/authorname-blogs.md`
|
||||
|
||||
## v2.2.2
|
||||
|
||||
Released December 31, 2025
|
||||
|
||||
Reference in New Issue
Block a user