Created
September 22, 2012 19:18
-
-
Save nicinabox/3767491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% capture reading_time %} | |
{{ 150 | divided_by: 150 }} | |
{% endcapture %} | |
<span> | |
Reading time: about {{ reading_time }} | |
{% if reading_time == 1 %} | |
minute | |
{% else %} | |
minutes | |
{% endif %} | |
</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
reading_time
comes out as1
, however, in the comparison, it thinksreading_time
is not1
(or even'1'
) and prints out "minutes".What's going on here?