user-card.html 616 B

1234567891011121314151617181920
  1. {% assign person-id = include.person-id | default: 0 %}
  2. {% assign person = site.data.people[person-id] %}
  3. {% capture col-avatar %}
  4. <div class="col-auto">
  5. {% include ui/avatar.html person=person class="rounded" %}
  6. </div>
  7. {% endcapture %}
  8. <a class="card card-link" href="#">
  9. <div class="card-body">
  10. <div class="row">
  11. {% unless include.right %}{{ col-avatar }}{% endunless %}
  12. <div class="col">
  13. <div class="font-weight-medium">{{ person.full_name }}</div>
  14. <div class="text-secondary">{{ person.job_title }}</div>
  15. </div>
  16. {% if include.right %}{{ col-avatar }}{% endif %}
  17. </div>
  18. </div>
  19. </a>