gallery-photo.html 1.0 KB

12345678910111213141516171819202122232425262728
  1. <div class="card card-sm">
  2. <a href="#" class="d-block"><img src="{{ site.base }}/static/photos/{{ photo.file }}" class="card-img-top"></a>
  3. <div class="card-body">
  4. <div class="d-flex align-items-center">
  5. {% include ui/avatar.html person=include.person class="me-3 rounded" %}
  6. <div>
  7. <div>{{ include.person.full_name }}</div>
  8. <div class="text-secondary">{{ forloop.index | random_date_ago: 10 | timeago }}</div>
  9. </div>
  10. {% unless include.hide-likes %}
  11. <div class="ms-auto">
  12. <a href="#" class="text-secondary">
  13. {% include ui/icon.html icon="eye" %}
  14. {{ forloop.index | random_number: 300, 600 }}
  15. </a>
  16. <a href="#" class="ms-3 text-secondary">
  17. {% assign class = false %}
  18. {% if forloop.index > 2 and forloop.index < 9 or forloop.index == 10 %}
  19. {% assign class = "icon-filled text-red" %}
  20. {% endif %}
  21. {% include ui/icon.html icon="heart" class=class %}
  22. {{ forloop.index | random_number: 20, 100 }}
  23. </a>
  24. </div>
  25. {% endunless %}
  26. </div>
  27. </div>
  28. </div>