2019-04-03 00:32:07 +02:00
|
|
|
import Head from 'next/head'
|
2019-04-11 20:59:26 +02:00
|
|
|
import { withAmp } from 'next/amp'
|
2019-04-03 00:32:07 +02:00
|
|
|
|
|
|
|
const date = new Date().toJSON()
|
|
|
|
|
2019-04-11 20:59:26 +02:00
|
|
|
export default withAmp(() => (
|
2019-04-03 00:32:07 +02:00
|
|
|
<>
|
|
|
|
<Head>
|
|
|
|
<script
|
|
|
|
async
|
|
|
|
key='amp-timeago'
|
|
|
|
custom-element='amp-timeago'
|
|
|
|
src='https://cdn.ampproject.org/v0/amp-timeago-0.1.js'
|
|
|
|
/>
|
|
|
|
</Head>
|
|
|
|
|
|
|
|
<amp-timeago
|
|
|
|
width='160'
|
|
|
|
height='20'
|
|
|
|
datetime={date}
|
|
|
|
layout='responsive'
|
|
|
|
>
|
|
|
|
{date}
|
|
|
|
</amp-timeago>
|
|
|
|
</>
|
2019-04-11 20:59:26 +02:00
|
|
|
))
|