diff --git a/config.toml b/config.toml index d1885fed..9fe31bfe 100644 --- a/config.toml +++ b/config.toml @@ -185,6 +185,9 @@ stylesheets = [] # Add a "copy" button to codeblocks (loads ~700 bytes of JavaScript). copy_button = true +# Show the reading time of a page. +show_reading_time = true + # Adds backlinks to footnotes (loads ~500 bytes of JavaScripts). footnote_backlinks = false diff --git a/templates/macros/content.html b/templates/macros/content.html index b232e6c9..b7bb86d7 100644 --- a/templates/macros/content.html +++ b/templates/macros/content.html @@ -17,7 +17,7 @@
  • {{ macros_format_date::format_date(date=page.date, short=true) }} {{ separator }}
  • {% endif %} - {% if !page.extra.skip_readtime %} + {% if page.extra.show_reading_time %}
  •  {{ page.reading_time }}{%- if lang != config.default_language %} {{ trans(key="min_read" | safe, lang=lang) }} {% else %} min read {% endif %}
  • {% endif %}