Skip to content

content-post

One post, for a site’s /blog/<slug> page (stage 28): its title, date, cover and body, as the public reads it (usePost: the published version only, ADR 0442). An old address answers redirect: the page calls onRedirect with the address the post has now, so the site sends a 301 there. A preview link’s token shows the working copy instead (PostPreview).

Skin web
Pack content
Add it cos add content-post
Files post-page.tsx, LICENSE
Depends on content-rich-text
Packages @composable-os/pack-content

Through its hooks; the host decides what each caller may do.

Source: packs/content/blocks/content-post.