mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-01-19 02:53:43 +00:00
fix: reading time localization
This commit is contained in:
parent
72ea6524ce
commit
3c002dfddc
@ -61,7 +61,7 @@
|
||||
</ul>
|
||||
<div class="post-card-byline-content">
|
||||
<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">•</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">•</span> {{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
2
post.hbs
2
post.hbs
@ -145,7 +145,7 @@ into the {body} of the default.hbs template --}}
|
||||
<h4><a href="{{url}}">{{title}}</a></h4>
|
||||
<div class="read-next-card-meta">
|
||||
<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>
|
||||
</li>
|
||||
{{/foreach}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user