dmsylvio/timeago

Craft 3 Time-Ago Twig Filter

dev-master 2019-11-13 15:42 UTC

This package is auto-updated.

Last update: 2024-04-14 04:24:24 UTC


README

Time Ago twig filter

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require dmsylvio/timeago
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Time Ago.

Using Time Ago

    {{ entry.postDate|time_ago }}