1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

Fixed bug with include when using.size == 1

If using.size is 1, then the resulting html would be "and PROJECT use the ..." without anything being listed before the "and".
This commit is contained in:
Ian Lee 2016-04-09 15:20:13 -07:00
parent c3e53e968d
commit 4a39b82795

View File

@ -5,7 +5,7 @@
{% 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 %}