Files
docker-docs/_includes/read_time.html
Misty Stanley-Jones 1cb25b912b Implement per-page reading-time stats
Does not rely on Jekyll plugin but uses pure Liquid
Included basic CSS

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
2016-11-30 10:29:51 -08:00

10 lines
287 B
HTML

<span class="reading-time" title="Estimated reading time">
<span class="reading-time-label">Estimated reading time: </span>
{% assign words = content | number_of_words %}
{% if words < 360 %}
1 minute
{% else %}
{{ words | divided_by:180 }} minutes
{% endif %}
</span>