a63ac3e715
* TakeShape Example * Fix preview logic * Update README * Fix broken link * Be more clear with the relationship field * Use latest next.js for cms examples * Only show enabled items * Ignore current slug * Fix queries * Add takeshape demo * Added link to blog-starter Co-authored-by: Luis Alvarez D <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>
|
|
}
|