- Updates to reference the new Richtext field from Strapi - Update to include feature image in RSS - General cleanups (removing a lot of console.log) - I think there's a nextjs update in there as well
14 lines
No EOL
409 B
JavaScript
14 lines
No EOL
409 B
JavaScript
const PublishedInfo = (publishData) => {
|
|
|
|
var publishedDate = new Date(publishData.publishData.publishedAt)
|
|
var updatedDate = new Date(publishData.publishData.updatedAt)
|
|
|
|
return (
|
|
<div className="publishInfo">
|
|
First Published: {publishedDate.toDateString()}<br />
|
|
Last Updated: {updatedDate.toDateString()}<br />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default PublishedInfo |