hellatan / metalsmith-date-formatter

Format metadata dates
11 stars 1 forks source link

Add formatted date as new property instead of overwriting it #4

Open stephanmax opened 6 years ago

stephanmax commented 6 years ago

Hi, I am facing the situation where I need both the formatted and unformatted date value, e. g. in

<time datetime="[unformatted date]">[formatted date]</time>

How about an optional config property that one can use to specify a new property name? Happy to file a PR for this. Thanks for the plugin!

borisovg commented 2 years ago

This breaks metalsmith-feed-atom plugin.

Ref: https://github.com/almirfilho/metalsmith-feed-atom/issues/1