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 -%}
|
{%- assign words = content | number_of_words -%}
|
||||||
{%- if words >= 360 -%}
|
{%- 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 -%}
|
{%- endif -%}
|
||||||
|
{%- endunless -%}
|
||||||
|
|
|
@ -28,12 +28,7 @@
|
||||||
{%- if page.advisory -%}
|
{%- if page.advisory -%}
|
||||||
<blockquote>{{ site.data.advisories.texts[page.advisory] | markdownify }}</blockquote>
|
<blockquote>{{ site.data.advisories.texts[page.advisory] | markdownify }}</blockquote>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- unless page.skip_read_time == true -%}
|
<p>{%- include read_time.html -%}</p>
|
||||||
{%- 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 -%}
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
{%- unless page.notags == true -%}
|
{%- unless page.notags == true -%}
|
||||||
{%- assign keywords = page.keywords | split:"," -%}
|
{%- assign keywords = page.keywords | split:"," -%}
|
||||||
|
|
Loading…
Reference in New Issue