mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +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:
parent
c3e53e968d
commit
4a39b82795
@ -5,7 +5,7 @@
|
|||||||
{% 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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user