mirror of
https://github.com/welpo/tabi.git
synced 2026-05-14 10:07:34 +02:00
Support hiding the read time indication on pages
This commit is contained in:
parent
7d8ed20c24
commit
cf95506d08
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,9 @@
|
|||
<li>{{ macros_format_date::format_date(date=page.date, short=true) }} {{ separator }}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if !page.extra.skip_readtime %}
|
||||
<li title="{{ page.word_count }} {%- if lang != config.default_language %} {{ trans(key="words" | safe, lang=lang) }} {% else %} words {% endif %}"> {{ page.reading_time }}{%- if lang != config.default_language %} {{ trans(key="min_read" | safe, lang=lang) }} {% else %} min read {% endif %}</li>
|
||||
{% endif %}
|
||||
|
||||
{% if page.taxonomies and page.taxonomies.tags %}
|
||||
<li> {{ separator }} {%- if lang != config.default_language -%}{{ trans(key="tags" | safe, lang=lang) | capitalize }}{% else %}Tags{%- endif -%}: </li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue