Support hiding the read time indication on pages

This commit is contained in:
Steven Roose 2023-08-29 22:30:15 +01:00
parent 7d8ed20c24
commit cf95506d08
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87

View file

@ -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 %}">&nbsp;{{ 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>&nbsp;{{ separator }}&nbsp;{%- if lang != config.default_language -%}{{ trans(key="tags" | safe, lang=lang) | capitalize }}{% else %}Tags{%- endif -%}:&nbsp;</li>