Accessing Post context inside static page

Hello there,

I have a static page which lists all of my articles.
For now I have the published date as well as the title.

I would like to display the reading time. However, as I am on a page context it seems I can not access the post context so as to use the reading_time helper.

Am I missing something or there is a way around ?

Thanks !

Are you trying to show the reading time for all your articles?

If you are using a {{foreach}} to loop through the posts then you can use the {{reading_time}} helper there.

If you managed to show the title then within the same context the reading time should work too.

I indeed use it inside a {{foreach posts}}. Just tried to restart ghost again and it worked. Funny because before the helper did not output anything.

Anyway thanks for your help !

1 Like