g00glen00b / dimitri.codes

Static generator for dimitri.codes using Gatsby
https://dimitri.codes
Other
20 stars 8 forks source link

Reading time in social card image does not match reading time of blogpost #114

Closed g00glen00b closed 2 years ago

g00glen00b commented 2 years ago

For example, following blogpost shows a reading time of 22 minutes: https://dimitr.im/unit-testing-spring-boot The social card shows a reading time of 17 minutes: https://dimitr.im/static/488614052ead0deec8cdd97f9c5c0898/a6312/social-card.png

This is because the first uses the minutes to read value provided by the remark transformer, while the latter uses the readingTime library.

Also, the word "minute" should be plural.