Add sidebar CTA below blog TOC (for top 25 visited blog) - #1829
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Straightforward, well-scoped addition: a new opt-in sidebarCta frontmatter field renders a small CTA below the blog TOC via a new server component, with frontmatter added to 25 posts. Verified the component logic, the ArticleSection wiring, and that all referenced hrefs (docs pages, customer stories) resolve to real routes — no issues found.
LCraigie
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an opt-in text + button CTA that renders directly below the table
of contents in the sticky right rail on standard blog post layouts.
Enabled per post via a new
sidebarCtafrontmatter field:sidebarCta:
text: "Blurb copy."
buttonLabel: "Button label"
href: "/relative/path?ref=..."
Applied to the 25 posts in the CTA mapping doc, each with its own
copy/target from that doc.
Performance
No client JS added.
BlogSidebarCtais a plain server component (no"use client", no observers/listeners) — it reusesButtonLink/Button, which every blog post already loads for the CTA at thebottom of the article, so this ships zero new JS bundle bytes. It's
rendered inside the TOC's existing sticky wrapper, which is already
hidden below the
lgbreakpoint, so nothing changes on mobile. No newimages, fonts, or network requests. Doesn't touch the hero/above-the-
fold content, so no LCP impact.
Files
app/(v1)/blog/[slug]/BlogSidebarCta.tsx— new componentapp/(v1)/blog/[slug]/page.tsx— wires it in belowBlogToc,gated on
scope.sidebarCtaAGENTS.md— documents the new frontmatter fieldcontent/blog/*.mdx/.mdfiles —sidebarCtafrontmatter perthe CTA mapping doc
Notes
introducing-agent-evalshad a typo in thesource doc ("Continuously iimprove agents...") — fixed to "improve".
with
?ref=blog-<slug>-sidebartags, per repo convention.