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>
6 lines
205 B
JavaScript
6 lines
205 B
JavaScript
import { parseISO, format } from 'date-fns'
|
|
|
|
export default function Date({ dateString }) {
|
|
const date = parseISO(dateString)
|
|
return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>
|
|
}
|