Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-language reading time estimate #196

Open
haojian opened this issue Oct 26, 2019 · 0 comments
Open

Multi-language reading time estimate #196

haojian opened this issue Oct 26, 2019 · 0 comments

Comments

@haojian
Copy link

haojian commented Oct 26, 2019

Hi,

The current reading time (e.g., x minutes read) estimate the time by counting only the number of English words. I want to create a pull request to add multi-language support. I located the relevant code is in "index.html".

{{ post.date | date: "%B %-d, %Y" }} - {% capture words %} {{ post.content | number_of_words }} {% endcapture %} {% unless words contains "-" %} {{ words | plus: 250 | divided_by: 250 | append: " minute read" }} {% endunless %} - {% for tag in post.tags %} {{ tag }} {% endfor %}

I am wondering how can I make the changes?
Any help or pointers are appreciated. I have little experience with Ruby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant