xaprb / story

Beautiful responsive Hugo blog theme focused on simplicity and elegance, with many extra features including presentations, math typesetting, music notation, and search.
MIT License
170 stars 63 forks source link

[Feature Request] Reading Time #47

Closed rootkea closed 2 years ago

rootkea commented 6 years ago

Hello!

It would be cool to display the Reading time (page variable) on homepage in post snippet and on post page. Prompts like "2 minute reading time" helps the user to make the decision of whether to read or not.

I'm thinking about the one like in type theme[0][1]

[0] https://themes.gohugo.io//theme/type/
[1] https://themes.gohugo.io//theme/type/post/migrate-from-jekyll/

xaprb commented 6 years ago

I considered this but opted not to. My old theme used to have this. Let's see if anyone else wants to vote for this. We could always add it with a flag to enable/disable it.

rootkea commented 5 years ago

It would be cool to display the Reading time (page variable) on homepage in post snippet

To explain further, I would like to draw your attention to the Medium, one of the most popular blogging platforms.

medium

Thanks!

aadilayub commented 5 years ago

I would also highly appreciate this feature.

xaprb commented 5 years ago

To set expectations clearly, I do not plan to work on this, but I will accept a pull request as long as it uses a feature flag and works correctly in all important scenarios, e.g. responsive layout at different screen sizes.

xaprb commented 5 years ago

I see value in this for attracting potential readers to the content, for example the way Slack previews give people enough information to decide whether they want to follow a link:

screen shot 2019-01-16 at 9 15 05 am

The meta headers appear to be:

<meta name="twitter:label1" value="Reading time"><meta name="twitter:data1" value="5 min read">

I would also consider adding this to the unobtrusive article metadata in the list view, e.g. on mouseover,

screen shot 2019-01-16 at 9 20 04 am
alihusnainarshad commented 5 years ago

I will highly appreciate this feature. Please @xaprb .

xaprb commented 2 years ago

I’m sorry but I’m not interested in maintaining this theme anymore. I’m glad it’s been useful, and I encourage someone to continue development elsewhere. The MIT license is very permissive and should not place any burdensome restrictions upon that.