le code source de mon blog Sous les Ondes, basé sur Jekyll avec le thème Leonids https://souslesondes.fr

categories.html 516B

123456789101112131415161718
  1. ---
  2. layout: page
  3. title: Catégories
  4. permalink: /categories/
  5. ---
  6. <div class="tag-list">
  7. {% for cat in site.categories %}
  8. <div class="tag-group">
  9. {% capture cat_name %}{{ cat | first }}{% endcapture %}
  10. <h5 class="tag-group-title" id="{{ cat_name | slugize }}">{{ cat_name }}</h5>
  11. {% for post in site.categories[cat_name] %}
  12. <article class="tag-item">
  13. <a class="tag-item-title" href="{{ site.url }}{{ post.url }}">{{post.title}}</a>
  14. </article>
  15. {% endfor %}
  16. </div>
  17. {% endfor %}
  18. </div>