# {{reading\_time}} fails with an empty post

**URL:** <https://forum.ghost.org/t/reading-time-fails-with-an-empty-post/58481>\
**Category:** Bugs\
**Created:** [July 1, 2025, 12:06pm UTC](https://forum.ghost.org/t/reading-time-fails-with-an-empty-post/58481 "2025-07-01T12:06:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Pitt](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/robert_pitt/32/36715_2.png) [@Robert\_Pitt](https://forum.ghost.org/u/Robert_Pitt)\
**Post date:** [July 1, 2025, 12:06pm UTC](https://forum.ghost.org/t/reading-time-fails-with-an-empty-post/58481/1 "2025-07-01T12:06:31Z")

</div>

**Issue Summary**  
It’s probably not an issue on a real blog but I discovered it while working on a theme. If a post is empty, the reading\_time doesn’t output anything.

**Steps to Reproduce**

1. Create a post with a title but no content.
2. Open post

* * *

## Setup information

**Ghost Version**  
5.128.0

**Node.js Version**  
v20.19.3

**How did you install Ghost?**  
python venv, nodeenv, ghost install local

**Provide details of your host & operating system**  
Local development, Ubuntu Linux in WSL

**Database type**  
SQLite

---

<div class="post-metadata">

**Author:** ![Ziddi\_Hoon](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ziddi_hoon/32/36753_2.png) [@Ziddi\_Hoon](https://forum.ghost.org/u/Ziddi_Hoon)\
**Post date:** [July 3, 2025, 9:45pm UTC](https://forum.ghost.org/t/reading-time-fails-with-an-empty-post/58481/2 "2025-07-03T21:45:17Z")

</div>

The issue occurs because {{reading\_time}} relies on post content to calculate reading duration, so with no content, it returns nothing. To fix this in your theme, wrap {{reading\_time}} with a conditional check like {{#if content}} {{reading\_time}} {{else}} 0 min read {{/if}} to ensure a fallback message appears when a post is empty[.](https://calculadoradedias.com/)

---

<div class="post-metadata">

**Author:** ![Robert\_Pitt](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/robert_pitt/32/36715_2.png) [@Robert\_Pitt](https://forum.ghost.org/u/Robert_Pitt)\
**Post date:** [July 3, 2025, 9:55pm UTC](https://forum.ghost.org/t/reading-time-fails-with-an-empty-post/58481/3 "2025-07-03T21:55:38Z")

</div>

Well this is a nice workaround if it was a real problem, it’s a trivial bug in production I won’t have empty posts I just thought I’d report it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [October 1, 2025, 9:56pm UTC](https://forum.ghost.org/t/reading-time-fails-with-an-empty-post/58481/4 "2025-10-01T21:56:29Z")

</div>

Closed on October 1, 2025, 9:56pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
