Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a student, I'd like to know the difficulty/time required for each lesson #5

Open
elipousson opened this issue Nov 8, 2015 · 0 comments

Comments

@elipousson
Copy link
Member

Establishing clear expectations are important to keep students engaged. Including information about the intended audience, the anticipated difficulty or time required for each lesson or activity may be helpful.

Here is one way to calculate reading time using a Liquid template:

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

If we wanted to include this in the course page template, we'd need to add:

{% include read_time.html %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant