Your sites Log in Sign up Menu

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.


a year ago, 2 replies   developers   reading-time   Improve this 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 a year ago · Improve this answer

Your reply answers my question. Thanks!

Answered a year ago · Improve this answer