Show the reading time separate only if it exists

This commit is contained in:
Sodbileg Gansukh 2022-05-26 13:56:10 +08:00
parent cfd767be88
commit 7a86c6fd92

View file

@ -50,7 +50,9 @@ into the {body} tag of the default.hbs template --}}
<h4 class="author-name">{{authors}}</h4>
<div class="byline-meta-content">
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
<span class="byline-reading-time"><span class="bull">&bull;</span> {{reading_time}}</span>
{{#if reading_time}}
<span class="byline-reading-time"><span class="bull">&bull;</span> {{reading_time}}</span>
{{/if}}
</div>
</div>