index.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <main class="x xdc">
  4. <div class="x xdc bg-xdr">
  5. <section class="bdb-gray bg-w75 bg-xo2">
  6. {% for block in doc.blocks %}
  7. {% if block.type == 'image' %}
  8. {% include "partials/block-image-cover.html" %}
  9. {% endif %}
  10. {% endfor %}
  11. </section>
  12. <section class="x xw xdr bdb-gray pt1-7 pr0-85 pb1-7 pl0-85 bg-w25 bg-xo1 bg-bdr-gray">
  13. <div class="x xdr bg-xdc w50 md-w25 bg-w100 g-4-16">
  14. <div class="x xdc">
  15. <h3 class="fgc-gray ttu pb1-7">categories</h3>
  16. {% for cat in categories.keys() %}
  17. <a href="#{{ cat | lower }}" class="fgc-cyan ttu{% if not loop.last %} pb1-7{% endif %}">{{ cat }}</a>
  18. {% endfor %}
  19. </div>
  20. <div class="x xdc">
  21. <h3 class="fgc-gray ttu pb1-7">set</h3>
  22. {% for set in sets %}
  23. <a href="/{{ set.path }}" class="fgc-cyan ttu{% if not loop.last %} pb1-7{% endif %}">{{ set.title }}</a>
  24. {% endfor %}
  25. </div>
  26. </div>
  27. </section>
  28. </div>
  29. {% for cat, products in categories.items() %}
  30. <section class="copy-h">
  31. <h2 id="{{ cat | lower }}" class="bdb-gray">{{ cat }}</h2>
  32. <div class="dg grid-2 related-products">
  33. {% for product in products %}
  34. {% set block = product.blocks[0] %}
  35. {% include "partials/grid-product.html" %}
  36. {% endfor %}
  37. </section>
  38. {% endfor %}
  39. </main>
  40. {% include "partials/footer.html" %}
  41. {% endblock %}