Add blog section to marketing site#528
Open
tanishqsh wants to merge 3 commits into
Open
Conversation
Port the blog from the developers dev site into the Vite SPA + Vocs hybrid: - /blog index (featured hero + category filters) and /blog/[slug] post pages - Markdown rendered to HTML at build time via a Vite plugin (virtual:blog-posts) with Shiki highlighting, keeping markdown libs out of the client bundle - Homepage BlogSection, Blog links in header nav and footer, .blog-prose styles - Dev middleware + static per-post copies (title/OG) for the dynamic route - Posts live in /blogs; drafts/ subfolder is excluded from the site Add T6 network upgrade post; keep mpp-credits as a draft. Amp-Thread-ID: https://ampcode.com/threads/T-019ef1ea-95a8-747f-8f7d-a5cc5deb7b97 Co-authored-by: Amp <amp@ampcode.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The Vocs Vercel adapter copies dist/public into .vercel/output/static
during the main Vocs build, before the marketing build runs, so the
marketing build's per-post static copies never reach Vercel. Only
src/pages-driven SSG output is served, so /blog worked but /blog/<slug>
fell through to the SSR 404.
Add a Waku dynamic route src/pages/blog/[slug].tsx with
getConfig({ render: 'static', staticPaths }) so each published post is
statically pre-rendered into .vercel/output/static with per-post title
and OG tags. MarketingRoute now accepts an arbitrary route string and
optional metadata.
Amp-Thread-ID: https://ampcode.com/threads/T-019ef1ea-95a8-747f-8f7d-a5cc5deb7b97
Co-authored-by: Amp <amp@ampcode.com>
Delete the drafted mpp-credits post (and the now-empty drafts/ folder) and its unused public/blog/mpp-hackathon-venue.png. T6 is the only post. Amp-Thread-ID: https://ampcode.com/threads/T-019ef1ea-95a8-747f-8f7d-a5cc5deb7b97 Co-authored-by: Amp <amp@ampcode.com>
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.
Ports the blog from the developers dev site into this repo's Vite SPA + Vocs hybrid.
What's included
.blog-prosestyled, Shiki-highlighted codeBlogSection("Dive deeper into Tempo's engineering"), plus Blog links in the header nav and footervirtual:blog-posts, so Shiki/unified stay out of the client bundle (nogray-matter— tiny frontmatter parser instead)/blog/*; the prod marketing build generates a static/blog/<slug>/index.htmlper post with correct title/OG (section=BLOG)Content
blogs/*.md(kebab-case; ALL-CAPS files are author docs)blogs/drafts/subfolder is excluded from the siteVerification
pnpm check:typespassespnpm buildsucceeds; static copies + per-post OG generated/blog,/blog/t6