fs-c / words

Simple static site generator for publishing words. Minimal and YGWYS.
The Unlicense
2 stars 0 forks source link

Add relative publication date dynamically #4

Closed fs-c closed 6 years ago

fs-c commented 6 years ago

Right now, relative publication dates (e.g. "2 weeks ago") are generated statically. This works well under the assumption that HTML is being generated periodically (which it is, for me), but it is not a reasonable assumption to make in general.

A simple solution would be to add these relative dates dynamically on page load. Naturally, we don't want to break functionality for users who choose to disable JavaScript, so a reasonable fallback should always be provided.