mirror of
https://github.com/github/choosealicense.com
synced 2024-07-06 02:09:36 +02:00
Merge pull request #390 from IanLee1521/patch-1
Fixed bug with include when using.size == 1
This commit is contained in:
commit
b41a99eaa0
@ -5,13 +5,13 @@
|
|||||||
{% if using.size > 0 %}
|
{% if using.size > 0 %}
|
||||||
{% for used in using limit: 3 %}
|
{% for used in using limit: 3 %}
|
||||||
{% assign last = forloop.last %}
|
{% assign last = forloop.last %}
|
||||||
{% if last %}
|
{% if last and using.size > 1 %}
|
||||||
and
|
and
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for hash in used %}
|
{% for hash in used %}
|
||||||
<a href="{{ hash[1] }}">{{ hash[0] }}</a>{% if last == false %},{% endif %}
|
<a href="{{ hash[1] }}">{{ hash[0] }}</a>{% if last == false %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user