chore: make min read string translatable in blog post (#19410)
* Make min read translatable min read doesn't get translated, which can be a little bit annoying when writing blog posts in other languages other than english Co-authored-by: phot0n <ritwikpuri5678@gmail.com>
This commit is contained in:
parent
b414fff09f
commit
1ddbb9d7a4
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
<time datetime="{{ published_on }}">{{ frappe.format_date(published_on) }}</time>
|
||||
{%- if read_time -%}
|
||||
·
|
||||
<span>{{ read_time }} min read</span>
|
||||
<span>{{ read_time }} {{ _('min read') }} </span>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
<a href="/blog?blogger={{ post.blogger }}">{{ post.full_name }}</a>
|
||||
<div class="small">
|
||||
{{ frappe.format_date(post.published_on) }}
|
||||
{% if post.read_time %} · {{ post.read_time }} min read {% endif %}
|
||||
{% if post.read_time %} · {{ post.read_time }} {{ _('min read') }} {% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue