mirror of https://github.com/docker/docs.git
Merge pull request #15218 from crazy-max/p-read-time
jekyll: keep paragraph of reading time and use include
This commit is contained in:
commit
43fdab2019
|
@ -1,4 +1,6 @@
|
|||
{%- unless page.skip_read_time == true -%}
|
||||
{%- assign words = content | number_of_words -%}
|
||||
{%- if words >= 360 -%}
|
||||
<p><em class="reading-time">Estimated reading time: {{ words | divided_by:180 }} minutes</em></p>
|
||||
<em class="reading-time">Estimated reading time: {{ words | divided_by:180 }} minutes</em>
|
||||
{%- endif -%}
|
||||
{%- endunless -%}
|
||||
|
|
|
@ -28,12 +28,7 @@
|
|||
{%- if page.advisory -%}
|
||||
<blockquote>{{ site.data.advisories.texts[page.advisory] | markdownify }}</blockquote>
|
||||
{%- endif -%}
|
||||
{%- unless page.skip_read_time == true -%}
|
||||
{%- assign words = content | number_of_words -%}
|
||||
{%- if words >= 360 -%}
|
||||
<p><em class="reading-time">Estimated reading time: {{ words | divided_by:180 }} minutes</em></p>
|
||||
{%- endif -%}
|
||||
{%- endunless -%}
|
||||
<p>{%- include read_time.html -%}</p>
|
||||
{{ content }}
|
||||
{%- unless page.notags == true -%}
|
||||
{%- assign keywords = page.keywords | split:"," -%}
|
||||
|
|
Loading…
Reference in New Issue