Skip to content

feat: add blog authors wrapper#94

Merged
chenjiahan merged 1 commit into
mainfrom
feat/blog-authors-rspress-peer
May 20, 2026
Merged

feat: add blog authors wrapper#94
chenjiahan merged 1 commit into
mainfrom
feat/blog-authors-rspress-peer

Conversation

@elecmonkey
Copy link
Copy Markdown
Member

Add blog authors wrapper (and add @rspress/core as peerDeps & devDeps)

Lynx's website achieves this visual order:

back button -> h1 -> date -> author list -> copy button

Except h1, other things are render in <BlogHeader/>. The .mdx places after h1. The back button is rendered inside BlogHeader, but CSS uses position: absolute to visually move it above the h1. It also hides the default .rp-llms-container then re-renders the same LlmsContainer / LlmsCopyButton / LlmsViewOptions inside BlogHeader, after the author list.

It's a so hacky way to achieve thire effect. i don't think we should learn from them. we could just create a authors wrapper firstly.

If needed, we could consider more flexible composition capabilities and hooks into Rspress maybe.

Copy link
Copy Markdown
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@chenjiahan chenjiahan merged commit 652ee7d into main May 20, 2026
6 checks passed
@chenjiahan chenjiahan deleted the feat/blog-authors-rspress-peer branch May 20, 2026 02:26
@chenjiahan
Copy link
Copy Markdown
Member

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.

2 participants