fix reading time

This commit is contained in:
GenZmeY 2023-05-22 22:28:39 +03:00
parent f85ad79103
commit bba2a33711
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ which templates loop over to generate a list of posts. --}}
<footer class="post-card-meta"> <footer class="post-card-meta">
<time class="post-card-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time> <time class="post-card-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
{{#if reading_time}} {{#if reading_time}}
<span class="post-card-meta-length">{{reading_time}}</span> <span class="post-card-meta-length">{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
{{/if}} {{/if}}
{{#if @site.comments_enabled}} {{#if @site.comments_enabled}}
{{comment_count}} {{comment_count}}

View File

@ -51,7 +51,7 @@ into the {body} tag of the default.hbs template --}}
<div class="byline-meta-content"> <div class="byline-meta-content">
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time> <time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
{{#if reading_time}} {{#if reading_time}}
<span class="byline-reading-time"><span class="bull">&bull;</span> {{reading_time}}</span> <span class="byline-reading-time"><span class="bull">&bull;</span> {{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
{{/if}} {{/if}}
</div> </div>
</div> </div>