fix: reading time localization

This commit is contained in:
GenZmeY 2020-12-04 05:04:51 +03:00
parent 72ea6524ce
commit 3c002dfddc
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@
</ul> </ul>
<div class="post-card-byline-content"> <div class="post-card-byline-content">
<span>{{#has author="count:>2"}}Multiple authors{{else}}{{authors}}{{/has}}</span> <span>{{#has author="count:>2"}}Multiple authors{{else}}{{authors}}{{/has}}</span>
<span class="post-card-byline-date"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span class="bull">&bull;</span> {{reading_time}}</span> <span class="post-card-byline-date"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span class="bull">&bull;</span> {{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
</div> </div>
</footer> </footer>

View File

@ -145,7 +145,7 @@ into the {body} of the default.hbs template --}}
<h4><a href="{{url}}">{{title}}</a></h4> <h4><a href="{{url}}">{{title}}</a></h4>
<div class="read-next-card-meta"> <div class="read-next-card-meta">
<p><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <p><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time>
{{reading_time}}</p> {{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</p>
</div> </div>
</li> </li>
{{/foreach}} {{/foreach}}