Log in Sign up

Is it possible to get the length of the post?

Is it possible to get the length of the post content? It could be used to calculate reading time, display the post in a different layout, etc . if we have a way to get the number of characters.


2 years ago, 2 replies   developers   reading-time   Edit question

Not using Blot's template system, there isn't a template tag you can use to do this. However, if you're willing to install some JavaScript on your template, there are a number of tools which you can use to calculate reading time, for example: reading-time.

To install, you'll want to fork a copy of your template, open up its source code and then paste the required JS into your footer.html file.

Does that help? Please let me know if you have any questions about this or anything else

Answered 2 years ago · Edit answer

Your reply answers my question. Thanks!

Answered 2 years ago · Edit answer