mirror of
https://github.com/github/choosealicense.com
synced 2025-01-03 10:31:44 +01: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 %}
|
||||
{% 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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user