feat(article): reading time (#204)

* add reading time feature

* Revert change in jsconfig.json

* feat: add article.readingTime param, and improve style

* Revert change in jsconfig.json x2

* Remove reading time in compact layout

It doesn't look right to me for now

* feat: add i18n support to reading time string

* Hide footer.article-time when there's not content

Co-authored-by: Jimmy Cai <github@jimmycai.com>
This commit is contained in:
Bachrul uluum
2021-07-23 18:37:30 +02:00
committed by GitHub
co-authored by Jimmy Cai
parent a25e6463bd
commit dcfc7b5589
5 changed files with 41 additions and 6 deletions
+5
View File
@@ -29,6 +29,11 @@ article:
lastUpdatedOn:
other: Last updated on
readingTime:
one: "{{ .Count }} min read"
### Seems that there's no need to add 's' even if it's plural in English
other: "{{ .Count }} min read"
notFound:
title:
other: Not Found