templates.html 935 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. layout: default
  3. ---
  4. <main class="post">
  5. <header class="post-header">
  6. <h1 class="post-title">{{ page.title }}</h1>
  7. </header>
  8. <div class="post-content">
  9. {{ content }}
  10. {%- for template in site.templates -%}
  11. <article class="library-item">
  12. <h2 class="library-rule-name">
  13. <a href="{{ template.url }}"><img src="{{ template.rule.icon }}">
  14. {{ template.rule.name }}
  15. </a>
  16. </h2>
  17. <p class="library-rule-structure">{{ template.rule.summary }}</p>
  18. <div class="library-module-list modules__grid">
  19. {%- for module in template.rule.modules -%}
  20. <div class="module library-module">{{ module.name }}
  21. {%- for submodule in module.modules -%}
  22. <div class="module library-module">{{ submodule.name }}</div>
  23. {%- endfor -%}
  24. </div>
  25. {%- endfor -%}
  26. </div>
  27. </article>
  28. {%- endfor -%}
  29. </div>
  30. </main>