loop-themes.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ---
  2. layout: default
  3. ---
  4. {% include masthead/masthead-page.html %}
  5. <div class="container">
  6. <!-- Show paginated posts for the specified collection -->
  7. <div class="row">
  8. {% assign sorted = site.themes | sort: "rank" %}
  9. {% for theme in sorted %}
  10. <div class="col-md-4">
  11. <div class="item-preview mb-5">
  12. {% if theme.update %}
  13. <span class="badge badge-info position-absolute badge-pill" style="right: -.5rem; top: -.5rem; z-index: 999;">Updated!</span>
  14. {% endif %}
  15. <a class="item-preview-img box-shadow-lg d-block mb-3" href="{{ theme.src }}">
  16. <img class="lazy img-fluid" data-src="{{ theme.img-thumbnail }}" alt="{{ theme.img-desc }}">
  17. </a>
  18. <div class="item-preview-title d-flex align-items-center">
  19. {{ theme.title }}
  20. {% if theme.pro %}
  21. <span class='badge badge-warning ml-auto small badge-pill'>Pro</span>
  22. {% else %}
  23. <span class='badge badge-success ml-auto small badge-pill'>Free</span>
  24. {% endif %}
  25. </div>
  26. <div class="item-preview-description">{{ theme.bump }}</div>
  27. </div>
  28. </div>
  29. {% endfor %}
  30. {% include survey.html %}
  31. </div>
  32. <!-- /.row -->
  33. </div>
  34. <!-- /.container -->
  35. {{ content }}