diff --git a/_includes/read_time.html b/_includes/read_time.html index 9cb3f7ae193e..b6eb2e9be242 100644 --- a/_includes/read_time.html +++ b/_includes/read_time.html @@ -1,4 +1,6 @@ +{%- unless page.skip_read_time == true -%} {%- assign words = content | number_of_words -%} {%- if words >= 360 -%} -

Estimated reading time: {{ words | divided_by:180 }} minutes

+Estimated reading time: {{ words | divided_by:180 }} minutes {%- endif -%} +{%- endunless -%} diff --git a/_layouts/docs.html b/_layouts/docs.html index 17bc31b751f7..72d909136cb4 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -28,12 +28,7 @@

{{ page.title }}

{%- if page.advisory -%}
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{%- endif -%} - {%- unless page.skip_read_time == true -%} - {%- assign words = content | number_of_words -%} - {%- if words >= 360 -%} -

Estimated reading time: {{ words | divided_by:180 }} minutes

- {%- endif -%} - {%- endunless -%} +

{%- include read_time.html -%}

{{ content }} {%- unless page.notags == true -%} {%- assign keywords = page.keywords | split:"," -%}