avatar-list.html 580 B

1234567891011
  1. {% assign limit = include.limit | default: 5 %}
  2. {% assign offset = include.offset | default: 0 %}
  3. {% assign size = include['size'] | default: 'sm' %}
  4. <div class="avatar-list{% if include.stacked %} avatar-list-stacked{% endif %}{% if include.class %} {{ include.class }}{% endif %}">
  5. {% for person in site.data.people limit: limit offset: offset %}
  6. {% include "ui/avatar.html" person=person size=size rounded=true %}
  7. {% endfor %}
  8. {% if include.text %}
  9. {% include "ui/avatar.html" placeholder=include.text size=size rounded=true %}
  10. {% endif %}
  11. </div>