kylenstone / kylethinks

professional blog
0 stars 0 forks source link

utilize moment #9

Open kylenstone opened 7 years ago

kylenstone commented 7 years ago

Basic I want the time of each blog post to appear relative to the present ("Posted 7 hours ago").

http://momentjs.com/docs/#/parsing/

.use(templates({
        engine: 'jade',
        moment: moment
      }))

Advanced On my live resume, I want the months and years when I held various jobs to update dynamically "Kyle worked at Affinity Labs seven years ago"