mdwp / scrivito-time-ago

A time ago React component/Scrivito widget for the Scrivito CMS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scrivito Time Ago

CMS: Scrivito License: MIT

A time ago React component/Scrivito widget for the Scrivito CMS.

Screenshot

Screenshot

Installation

Open your terminal.

$ cd to your Scrivito project

$ npm install scrivito-time-ago

Import the widget in your javascript (e.g. in index.js or Widgets/index.js).

Add this line to your index.js:

import "scrivito-time-ago";

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.

About

A time ago React component/Scrivito widget for the Scrivito CMS.

License:MIT License


Languages

Language:JavaScript 96.6%Language:CSS 3.4%