Scrivito Time Ago
A time ago React component/Scrivito widget for the Scrivito CMS.
Screenshot
Installation
Open your terminal.
$ cd
to your Scrivito project
$ npm install scrivito-time-ago
Import the widget in your javascript src/Widgets/index.js
.
Add this line to your index.js:
;
Widget properties
In the widget properties you can set:
- Prefix - Text that will be shown before the date.
- Date in the past
- Postfix - Text that will be shown after the date.