loop-snippets.html 835 B

1234567891011121314151617181920212223242526272829303132333435
  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 snippets_sorted = site.snippets | sort: 'rank' %}
  9. {% for snippet in snippets_sorted %}
  10. <div class="col-md-4">
  11. <div class="item-preview mb-5">
  12. <a class="item-preview-img box-shadow-lg d-block mb-3" href="{{ snippet.src }}">
  13. <img class="lazy img-fluid" data-src="{{ snippet.img-thumbnail }}" alt="{{ snippet.img-desc }}">
  14. </a>
  15. <div class="item-preview-title">{{ snippet.title }}</div>
  16. <div class="item-preview-description">{{ snippet.bump }}</div>
  17. </div>
  18. </div>
  19. {% endfor %}
  20. {% include survey.html %}
  21. </div>
  22. <!-- /.row -->
  23. </div>
  24. <!-- /.container -->
  25. {{ content }}