time-ago.js 124 B

1234
  1. var timeAgo = require('node-time-ago');
  2. hexo.extend.helper.register('timeAgo', function(date){
  3. return timeAgo(date);
  4. });