2016-03-03 03:23:31 +01: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-10 00:20:13 +02:00
|
|
|
{% if last and using.size > 1 %}
|
2016-03-03 03:23:31 +01:00
|
|
|
and
|
|
|
|
{% endif %}
|
2020-10-03 20:31:20 +02:00
|
|
|
<a href="{{ used[1] }}">{{ used[0] }}</a>{% if last == false %},{% endif %}
|
2016-03-03 03:23:31 +01:00
|
|
|
{% endfor %}
|
2016-04-10 00:24:15 +02:00
|
|
|
use{% if using.size == 1 %}s{% endif %} the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
|
2016-03-03 03:23:31 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|