{% assign limit = include.limit | default: 8 %} {% assign offset = include.offset | default: 0 %} {% assign hoverable = include.hoverable | default: false %} {% assign checked-ids = include.checked-ids | default: '' | split: ',' %}

{{ include.title | default: 'Last commits' }}

{% assign colors = 'green,red,yellow,x,x' | split: ',' %} {% for person in people limit: limit offset: offset %} {% assign color = forloop.index | plus: 5 | random_item: colors %} {% assign index = '' | append: forloop.index %}
{% if include.checkbox %}
{% else %}
{% endif %}
{{ person.full_name }} {% assign i = forloop.index | plus: offset %}
{{ commits[i].description }}
{% if hoverable %} {% if checked-ids contains index %} {% assign star-color = 'text-yellow' %} {% else %} {% assign star-color = 'text-secondary' %} {% endif %} {% endif %}
{% endfor %}