Skip to content

Add sidebar CTA below blog TOC (for top 25 visited blog) - #1829

Merged
patrickholcomb9 merged 1 commit into
mainfrom
pat/blog-sidebar-cta
Aug 5, 2026
Merged

Add sidebar CTA below blog TOC (for top 25 visited blog)#1829
patrickholcomb9 merged 1 commit into
mainfrom
pat/blog-sidebar-cta

Conversation

@patrickholcomb9

Copy link
Copy Markdown
Contributor

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 sidebarCta frontmatter 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. BlogSidebarCta is a plain server component (no
"use client", no observers/listeners) — it reuses ButtonLink/
Button, which every blog post already loads for the CTA at the
bottom 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 lg breakpoint, so nothing changes on mobile. No new
images, 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 component
  • app/(v1)/blog/[slug]/page.tsx — wires it in below BlogToc,
    gated on scope.sidebarCta
  • AGENTS.md — documents the new frontmatter field
  • 25 content/blog/*.mdx/.md files — sidebarCta frontmatter per
    the CTA mapping doc

Notes

  • One copy correction: introducing-agent-evals had a typo in the
    source doc ("Continuously iimprove agents...") — fixed to "improve".
  • Target URLs from the doc were converted to relative internal links
    with ?ref=blog-<slug>-sidebar tags, per repo convention.

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
website Ready Ready Preview Aug 5, 2026 9:16pm

Request Review

@gester-bot gester-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@patrickholcomb9
patrickholcomb9 merged commit d0d615c into main Aug 5, 2026
9 checks passed
@patrickholcomb9
patrickholcomb9 deleted the pat/blog-sidebar-cta branch August 5, 2026 21:37
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