1
0
mirror of https://github.com/github/choosealicense.com synced 2024-07-03 17:09:12 +02:00

Merge pull request #390 from IanLee1521/patch-1

Fixed bug with include when using.size == 1
This commit is contained in:
Mike Linksvayer 2016-04-10 10:38:07 -07:00
commit b41a99eaa0

View File

@ -5,13 +5,13 @@
{% if using.size > 0 %}
{% for used in using limit: 3 %}
{% assign last = forloop.last %}
{% if last %}
{% if last and using.size > 1 %}
and
{% endif %}
{% for hash in used %}
<a href="{{ hash[1] }}">{{ hash[0] }}</a>{% if last == false %},{% endif %}
{% endfor %}
{% endfor %}
use the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
use{% if using.size == 1 %}s{% endif %} the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
{% endif %}
{% endfor %}