{% assign key = include.key | default: 'people' %} {% assign id = include.select-id | default: key %} {% assign data = site.data.selects[key] %} {% assign options = data.options %} {% if options == 'people' %} {% for person in site.data.people limit: 20 %} {% capture avatar %} {% include ui/avatar.html person=person class="avatar-sm rounded mr-2 ml-n1" %} {% endcapture %} {{ person.full_name }} {% endfor %} {% else %} {% for option in options %} {% if option[1] %} {% assign current-value = option[0] %} {% assign current-name = option[1].name %} {% assign all-data = option[1] %} {% else %} {% assign current-value = option %} {% assign current-name = option %} {% endif %} {{ current-name }} {% endfor %} {% endif %} {% capture_global scripts %} {% endcapture_global %}