756b365adf
* Add start of Sanity CMS example * Update cover-image * Clean up example * Apply suggestions from code review Co-Authored-By: Shu Uesugi <shu@chibicode.com> * Make changes from review * Remove extra style * Apply suggestions from code review Co-Authored-By: Shu Uesugi <shu@chibicode.com> * Make tweaks for preview mode and normalize env naming * Update viewing preview step * Delete author.jpg * Delete image.jpg * Update README * Fix environment variable names * Project ID is needed by lambda * Improved steps * Fixed issue with the project URL example * Clarify line * Get the preview post correctly * preview = false * Get unique posts * Show preview mode on index page * typo fix and use next latest * Added related examples section Co-authored-by: Shu Uesugi <shu@chibicode.com> Co-authored-by: Luis Alvarez <luis@zeit.co>
10 lines
309 B
JavaScript
10 lines
309 B
JavaScript
import markdownStyles from './markdown-styles.module.css'
|
|
import BlockContent from '@sanity/block-content-to-react'
|
|
|
|
export default function PostBody({ content }) {
|
|
return (
|
|
<div className="max-w-2xl mx-auto">
|
|
<BlockContent blocks={content} className={markdownStyles.markdown} />
|
|
</div>
|
|
)
|
|
}
|