2016-03-02 18:23:31 -08:00
|
|
|
{% assign id = "/licenses/" | append: include.license-id %}
|
|
|
|
{% assign licenses = site.licenses | where:"id", id %}
|
|
|
|
{% for license in licenses %}
|
|
|
|
{% assign using = license.using %}
|
|
|
|
{% if using.size > 0 %}
|
|
|
|
{% for used in using limit: 3 %}
|
|
|
|
{% assign last = forloop.last %}
|
2016-04-09 15:20:13 -07:00
|
|
|
{% if last and using.size > 1 %}
|
2016-03-02 18:23:31 -08:00
|
|
|
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 %}.
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|