sherpa raises $2.2M pre-seed
All posts

Engineering ·

Placeholder: Writing posts with MDX components

By sherpa team

This blog has no CMS. Each post is a markdown file in content/blog/, and adding one publishes it on the next build. Plain .md covers most posts; an .mdx file can also use a small set of components.

A figure with a caption

The sherpa home screen with the command bar
Placeholder figure: the sherpa home screen.

A product video

Placeholder video: intake questions from a brief.

Before and after

Before

The blog index showing every post

After

The blog index filtered to engineering posts
Placeholder comparison: the blog index before and after picking a track.

Code and tables

Every post is checked when the site builds:

export const dynamicParams = false;

export function generateStaticParams() {
  return getAllPosts().map(({ slug }) => ({ slug }));
}
PieceWhere it lives
Postscontent/blog/*.md[x]
Loaderlib/collections/
Componentscomponents/blog/mdx.tsx

Interested in this kind of work? Read about the company and the MDX docs.

Share this post

Share on LinkedIn

Build the future of work with us.

Whether you want early access or you’re curious about joining the team, we’d love to hear from you.