store-list.html 765 B

12345678910111213141516171819202122
  1. <div class="card">
  2. <table class="table card-table table-vcenter">
  3. {% for product in site.data.products %}
  4. <tr>
  5. <td><img src="{{ site.base }}/img/products/{{ product.image }}" alt="" class="h-16"></td>
  6. <td>
  7. {{ product.name }}
  8. {% assign mod = forloop.index | modulo: 2 %}
  9. {% if mod == 0 %}
  10. <span class="badge badge-secondary-lt">New</span>
  11. {% endif %}
  12. </td>
  13. <td class="text-end text-secondary d-none d-md-table-cell text-nowrap">{{ forloop.index | random_number: 4, 100 }} reviews</td>
  14. <td class="text-end text-secondary d-none d-md-table-cell text-nowrap">{{ forloop.index | random_number: 4, 50 }} offers</td>
  15. <td class="text-end">
  16. <strong>{{ product.price }}</strong>
  17. </td>
  18. </tr>
  19. {% endfor %}
  20. </table>
  21. </div>