Skip to content

Docs(blog): back link above post title#111

Draft
Chesars wants to merge 1 commit into
BerriAI:mainfrom
Chesars:fix/blog-back-link-above-title
Draft

Docs(blog): back link above post title#111
Chesars wants to merge 1 commit into
BerriAI:mainfrom
Chesars:fix/blog-back-link-above-title

Conversation

@Chesars
Copy link
Copy Markdown
Contributor

@Chesars Chesars commented May 10, 2026

Back link was outside the post container and overlapping content on mobile. Fixed to be inline above the H1, mobile-first.

The "← Blog" link was wrapped around `BlogPostPage`, which sits outside
Docusaurus's `Layout`, so on mobile it rendered visually above the
navbar. Its desktop styling also used `position: fixed`, so the link
floated over the post body whenever the viewport was narrower than the
empty margin beside the 820px content column.

Swizzle `@theme/BlogPostItem/Header` and render a small `<BackLink />`
inside the `<header>`, just before the title. Same left edge as the H1,
scrolls with the content, no overlap. Guard with
`useBlogPost().isBlogPostPage` so the link only shows on individual
posts, not on the blog index.

Drop the now-unused BackLink component and styles from
`src/theme/BlogPostPage/`.
@Chesars Chesars requested a review from a team May 10, 2026 22:56
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview, Comment May 10, 2026 11:02pm

Request Review

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.

1 participant