mirror of
https://github.com/docker/docs.git
synced 2026-11-01 22:34:29 +03:00
Merge pull request #15218 from crazy-max/p-read-time
jekyll: keep paragraph of reading time and use include
This commit is contained in:
@@ -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:"," -%}
|
||||
|
||||
Reference in New Issue
Block a user